Skip to content

Commit

Permalink
[PATCH] libata: cosmetic update to ata_bus_probe()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Apr 11, 2006
1 parent ec57375 commit 51713d3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
Expand Down

0 comments on commit 51713d3

Please sign in to comment.