scsi: aic7xxx: Return ahc_linux_register_host()'s value rather than zero
authorSu Hui <suhui@nfschina.com>
Fri, 1 Dec 2023 02:59:55 +0000 (10:59 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 6 Dec 2023 02:18:40 +0000 (21:18 -0500)
commit70dfaf84ec777c0590316a8785df22ca5e97bf10
tree2cbb19e73aee4f4ed5871b4fd6091b237f9e0787
parent573eb4a3410a9d4e0612cca50e2c67a46c3824f0
scsi: aic7xxx: Return ahc_linux_register_host()'s value rather than zero

ahc_linux_register_host() can return an error code in case of failure. So
ahc_linux_pci_dev_probe() should return the value of
ahc_linux_register_host() rather than zero.

An earlier commit made ahc_linux_register_host() return negative error
codes, which makes sure ahc_linux_pci_dev_probe() returns negative error
codes.

Signed-off-by: Su Hui <suhui@nfschina.com>
Link: https://lore.kernel.org/r/20231201025955.1584260-3-suhui@nfschina.com
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aic7xxx/aic7xxx_osm_pci.c