diff options
author | Niklas Schnelle <schnelle@linux.ibm.com> | 2021-07-21 19:58:54 +0200 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2021-08-25 11:03:33 +0200 |
commit | f7addcdd527a6dddfebe20c358b87bdb95624612 (patch) | |
tree | 7568cab5944e6d0f050d6afd827692026960acdf /arch/arm/mach-omap2/sram.h | |
parent | e8f06683d40e705da2d85bc6bc498e651d1ef31b (diff) | |
download | linux-f7addcdd527a6dddfebe20c358b87bdb95624612.tar.bz2 |
s390/pci: fix misleading rc in clp_set_pci_fn()
Currently clp_set_pci_fn() always returns 0 as long as the CLP request
itself succeeds even if the operation itself returns a response code
other than CLP_RC_OK or CLP_RC_SETPCIFN_ALRDY. This is highly misleading
because calling code assumes that a zero rc means that the operation was
successful.
Fix this by returning the response code or cc on failure with the
exception of the special handling for CLP_RC_SETPCIFN_ALRDY. Also let's
not assume that the returned function handle for CLP_RC_SETPCIFN_ALRDY
is 0, we don't need it anyway.
Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/arm/mach-omap2/sram.h')
0 files changed, 0 insertions, 0 deletions