mmc: check the return value of mmc_select_mode_and_width()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 23 Jan 2020 05:31:12 +0000 (14:31 +0900)
committerPeng Fan <peng.fan@nxp.com>
Mon, 17 Feb 2020 06:55:04 +0000 (14:55 +0800)
commit8adf50effeda52bb84b2c2aa66bcebf2920778e9
tree2fa661207e9fa832ba8f0ad9abe13d37ef53dce6
parent54a78cbdbee41e2c4b6691f950c2bacf7a50723f
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>
drivers/mmc/mmc.c