mmc: fix return value check condition

sd_read_ssr returns 0, means no error.
Fixes: 5b2e72f32721484("mmc: read ssr only if MMC write support is enabled")

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Jaehoon Chung <jh80.chung@samsung.com>
Cc: Jean-Jacques Hiblot <jjhiblot@ti.com>
This commit is contained in:
Peng Fan 2018-03-05 16:20:40 +08:00 committed by Jaehoon Chung
parent 4f0a8bf669
commit 0a4c2b099e
1 changed files with 1 additions and 1 deletions

View File

@ -1689,7 +1689,7 @@ static int sd_select_mode_and_width(struct mmc *mmc, uint card_caps)
#if CONFIG_IS_ENABLED(MMC_WRITE)
err = sd_read_ssr(mmc);
if (!err)
if (err)
pr_warn("unable to read ssr\n");
#endif
if (!err)