aboutsummaryrefslogtreecommitdiff
path: root/drivers/mmc/mmc.c
diff options
context:
space:
mode:
authorJaehoon Chung2020-12-04 06:36:00 +0900
committerPeng Fan2021-02-19 14:59:28 +0800
commit52ff04a216287e1e36d4a3ac977867412b91df45 (patch)
tree0b073ed613cf91ccb8dc4c465642c845281bfdb1 /drivers/mmc/mmc.c
parent2dddc1bb296308b48f89f31e711965fa2c8091a0 (diff)
mmc: initialize an err variable
Initialize an err variable to 0. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> Reported-by: Coverity (CID: 313548) Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers/mmc/mmc.c')
-rw-r--r--drivers/mmc/mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index 36aab50f64e..d67af80c011 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -2062,7 +2062,7 @@ static int mmc_select_hs400es(struct mmc *mmc)
static int mmc_select_mode_and_width(struct mmc *mmc, uint card_caps)
{
- int err;
+ int err = 0;
const struct mode_width_tuning *mwt;
const struct ext_csd_bus_width *ecbw;