diff options
author | Peng Fan <peng.fan@nxp.com> | 2018-03-05 16:20:40 +0800 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2018-05-02 10:57:43 +0900 |
commit | 0a4c2b099ed44a18c7768001cb974e80bff0f46b (patch) | |
tree | 12ba6cb9c76cda3a42072b4582e29ba0a8277be8 /drivers/mmc | |
parent | 4f0a8bf669f24771d1e4ca89a1f2b1ca39e50e47 (diff) | |
download | u-boot-0a4c2b099ed44a18c7768001cb974e80bff0f46b.tar.gz u-boot-0a4c2b099ed44a18c7768001cb974e80bff0f46b.tar.bz2 u-boot-0a4c2b099ed44a18c7768001cb974e80bff0f46b.zip |
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>
Diffstat (limited to 'drivers/mmc')
-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 f72b80c704..fe7c0b39ac 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -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) |