aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJaehoon Chung <jh80.chung@samsung.com>2020-12-04 06:36:00 +0900
committerPeng Fan <peng.fan@nxp.com>2021-02-19 14:59:28 +0800
commit52ff04a216287e1e36d4a3ac977867412b91df45 (patch)
tree0b073ed613cf91ccb8dc4c465642c845281bfdb1 /drivers
parent2dddc1bb296308b48f89f31e711965fa2c8091a0 (diff)
downloadu-boot-52ff04a216287e1e36d4a3ac977867412b91df45.zip
u-boot-52ff04a216287e1e36d4a3ac977867412b91df45.tar.gz
u-boot-52ff04a216287e1e36d4a3ac977867412b91df45.tar.bz2
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')
-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 36aab50..d67af80 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;