提交 5bbc53f4 编写于 作者: T Tejun Heo 提交者: Jeff Garzik

[PATCH] libata: fix ata_set_mode() return value

Make ata_set_mode() return correct error value when ata_dev_set_mode()
fails.
Signed-off-by: NTejun Heo <htejun@gmail.com>
Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 683aa401
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册