diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2020-01-23 14:31:12 +0900 |
---|---|---|
committer | Peng Fan <peng.fan@nxp.com> | 2020-02-17 14:55:04 +0800 |
commit | 8adf50effeda52bb84b2c2aa66bcebf2920778e9 (patch) | |
tree | 2fa661207e9fa832ba8f0ad9abe13d37ef53dce6 | |
parent | 54a78cbdbee41e2c4b6691f950c2bacf7a50723f (diff) | |
download | u-boot-8adf50effeda52bb84b2c2aa66bcebf2920778e9.zip u-boot-8adf50effeda52bb84b2c2aa66bcebf2920778e9.tar.gz u-boot-8adf50effeda52bb84b2c2aa66bcebf2920778e9.tar.bz2 |
mmc: check the return value of mmc_select_mode_and_width()
Since commit 01298da31d92 ("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: 01298da31d92 ("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>
-rw-r--r-- | drivers/mmc/mmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 6a2b855..2eb5e9d 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -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) |