提交 0a4c2b09 编写于 作者: P Peng Fan 提交者: Jaehoon Chung

mmc: fix return value check condition

sd_read_ssr returns 0, means no error.
Fixes: 5b2e72f3("mmc: read ssr only if MMC write support is enabled")
Signed-off-by: NPeng Fan <peng.fan@nxp.com>
Cc: Jaehoon Chung <jh80.chung@samsung.com>
Cc: Jean-Jacques Hiblot <jjhiblot@ti.com>
上级 4f0a8bf6
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册