diff options
author | Jaehoon Chung <jh80.chung@samsung.com> | 2020-12-04 06:36:00 +0900 |
---|---|---|
committer | Peng Fan <peng.fan@nxp.com> | 2021-02-19 14:59:28 +0800 |
commit | 52ff04a216287e1e36d4a3ac977867412b91df45 (patch) | |
tree | 0b073ed613cf91ccb8dc4c465642c845281bfdb1 | |
parent | 2dddc1bb296308b48f89f31e711965fa2c8091a0 (diff) | |
download | u-boot-52ff04a216287e1e36d4a3ac977867412b91df45.tar.gz |
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>
-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 36aab50f64..d67af80c01 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; |