1
0
Fork 0

[PATCH] libata: cosmetic update to ata_bus_probe()

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>
hifive-unleashed-5.1
Tejun Heo 2006-04-11 22:26:29 +09:00 committed by Jeff Garzik
parent ec573755fc
commit 51713d359a
1 changed files with 5 additions and 5 deletions

View File

@ -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++)