diff options
author | Tejun Heo <htejun@gmail.com> | 2006-03-31 11:38:17 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-04-01 12:33:45 -0500 |
commit | 5bbc53f4cfd28bf1d0e476ed23bc3a094eff718a (patch) | |
tree | a08fc82da508294f841570fdcb8553d69f8ac2d3 /drivers/scsi/libata-core.c | |
parent | 683aa4012f53b2ada0f430487e05d37b0d94e90a (diff) |
[PATCH] libata: fix ata_set_mode() return value
Make ata_set_mode() return correct error value when ata_dev_set_mode()
fails.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/scsi/libata-core.c')
-rw-r--r-- | drivers/scsi/libata-core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index e63c1ff1e102..8def7a5e436a 100644 --- a/drivers/scsi/libata-core.c +++ b/drivers/scsi/libata-core.c | |||
@@ -1856,7 +1856,8 @@ static void ata_set_mode(struct ata_port *ap) | |||
1856 | if (!ata_dev_present(dev)) | 1856 | if (!ata_dev_present(dev)) |
1857 | continue; | 1857 | continue; |
1858 | 1858 | ||
1859 | if (ata_dev_set_mode(ap, dev)) | 1859 | rc = ata_dev_set_mode(ap, dev); |
1860 | if (rc) | ||
1860 | goto err_out; | 1861 | goto err_out; |
1861 | } | 1862 | } |
1862 | 1863 | ||