提交 8adf50ef 编写于 作者: M Masahiro Yamada 提交者: Peng Fan

mmc: check the return value of mmc_select_mode_and_width()

Since commit 01298da3 ("mmc: Change mode when switching to a boot
partition"), errors in mmc_select_mode_and_width() are ignored.
The return value should be checked.

Fixes: 01298da3 ("mmc: Change mode when switching to a boot partition")
Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: NJaehoon Chung <jh80.chung@samsung.com>
上级 54a78cbd
......@@ -2577,7 +2577,7 @@ static int mmc_startup(struct mmc *mmc)
err = mmc_get_capabilities(mmc);
if (err)
return err;
mmc_select_mode_and_width(mmc, mmc->card_caps);
err = mmc_select_mode_and_width(mmc, mmc->card_caps);
}
#endif
if (err)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册