diff options
author | Damien Le Moal <dlemoal@kernel.org> | 2023-08-30 10:59:04 +0300 |
---|---|---|
committer | Damien Le Moal <dlemoal@kernel.org> | 2023-10-03 03:39:50 +0300 |
commit | 88b9f89286781ebfd3931867f6a6f037236bbeab (patch) | |
tree | e2afa85fea68ee7999355362d68ab223f49b9f45 /drivers/ata | |
parent | 3341b82368fb26dcf75f2c60320dc7442dac7075 (diff) | |
download | linux-88b9f89286781ebfd3931867f6a6f037236bbeab.tar.xz |
ata: libata-sata: Improve ata_sas_slave_configure()
Change ata_sas_slave_configure() to return the return value of
ata_scsi_dev_config() to ensure that any error from that function is
propagated to libsas.
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Tested-by: Chia-Lin Kao (AceLan) <acelan.kao@canonical.com>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/libata-sata.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/libata-sata.c b/drivers/ata/libata-sata.c index a701e1538482..83a9497e48e1 100644 --- a/drivers/ata/libata-sata.c +++ b/drivers/ata/libata-sata.c @@ -1182,8 +1182,8 @@ EXPORT_SYMBOL_GPL(ata_sas_tport_delete); int ata_sas_slave_configure(struct scsi_device *sdev, struct ata_port *ap) { ata_scsi_sdev_config(sdev); - ata_scsi_dev_config(sdev, ap->link.device); - return 0; + + return ata_scsi_dev_config(sdev, ap->link.device); } EXPORT_SYMBOL_GPL(ata_sas_slave_configure); |