提交 51713d35 编写于 作者: T Tejun Heo 提交者: Jeff Garzik

[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: NTejun Heo <htejun@gmail.com>
Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 ec573755
......@@ -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++)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册