projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
683aa40
)
[PATCH] libata: fix ata_set_mode() return value
author
Tejun Heo
<htejun@gmail.com>
Fri, 31 Mar 2006 16:38:17 +0000
(
01:38
+0900)
committer
Jeff Garzik
<jeff@garzik.org>
Sat, 1 Apr 2006 17:33:45 +0000
(12:33 -0500)
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>
drivers/scsi/libata-core.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/libata-core.c
b/drivers/scsi/libata-core.c
index e63c1ff1e10256ed2b023341c098978a690ad0b8..8def7a5e436a86a8f58f7765fdf99d99201e3a2f 100644
(file)
--- 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)
if (!ata_dev_present(dev))
continue;
- if (ata_dev_set_mode(ap, dev))
+ rc = ata_dev_set_mode(ap, dev);
+ if (rc)
goto err_out;
}