projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec57375
)
[PATCH] libata: cosmetic update to ata_bus_probe()
author
Tejun Heo
<htejun@gmail.com>
Tue, 11 Apr 2006 13:26:29 +0000
(22:26 +0900)
committer
Jeff Garzik
<jeff@garzik.org>
Tue, 11 Apr 2006 17:22:17 +0000
(13:22 -0400)
Move ata_set_mode() failure handling outside of ap->ops->set_mode if
clause such that it can handle ap->ops->set_mode failures after it's
updated.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/scsi/libata-core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/scsi/libata-core.c
b/drivers/scsi/libata-core.c
index 9194e4a6a55a74fea63ae6f93cd368b74abfd5fd..588578dc6caf50a7f439776a867543403468b09b 100644
(file)
--- a/
drivers/scsi/libata-core.c
+++ b/
drivers/scsi/libata-core.c
@@
-1441,12
+1441,12
@@
static int ata_bus_probe(struct ata_port *ap)
break;
}
rc = 0;
- } else
{
+ } else
rc = ata_set_mode(ap, &dev);
- if (rc) {
- down_xfermask = 1;
-
goto fail
;
- }
+
+ if (rc) {
+
down_xfermask = 1
;
+ goto fail;
}
for (i = 0; i < ATA_MAX_DEVICES; i++)