Initialize an err variable to 0.

Signed-off-by: Jaehoon Chung <jh80.ch...@samsung.com>
---
 drivers/mmc/mmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index a6394bcf308f..5151339d3aa3 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;
 
-- 
2.29.0

Reply via email to