Skip to content

Commit

Permalink
[PATCH] libata: fix ata_set_mode() return value
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Apr 1, 2006
1 parent 683aa40 commit 5bbc53f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 5bbc53f

Please sign in to comment.