mirror of
https://xff.cz/git/u-boot/
synced 2025-09-06 19:22:11 +02:00
mmc: check the return value of mmc_select_mode_and_width()
Since commit01298da31d
("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:01298da31d
("mmc: Change mode when switching to a boot partition") Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
This commit is contained in:
committed by
Peng Fan
parent
54a78cbdbe
commit
8adf50effe
@@ -2577,7 +2577,7 @@ static int mmc_startup(struct mmc *mmc)
|
|||||||
err = mmc_get_capabilities(mmc);
|
err = mmc_get_capabilities(mmc);
|
||||||
if (err)
|
if (err)
|
||||||
return err;
|
return err;
|
||||||
mmc_select_mode_and_width(mmc, mmc->card_caps);
|
err = mmc_select_mode_and_width(mmc, mmc->card_caps);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (err)
|
if (err)
|
||||||
|
Reference in New Issue
Block a user