summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorAntonio Nino Diaz <antonio.ninodiaz@arm.com>2018-08-10 13:04:02 +0100
committerAntonio Nino Diaz <antonio.ninodiaz@arm.com>2018-08-10 14:58:08 +0100
commitcadb36cb0a7f380615562efdd2c48c16d890855d (patch)
treeb66870146fda0855830cceefd419e698c792624f /drivers/mmc
parent5e4c590d849523fec47010cf281c15b99ba026bf (diff)
drivers/mmc: Fix warning about usage of uninitialized variable
Because of -Werror, this causes a build error. Change-Id: I37a8c4bbfe3f2ced5e17981a2814985919ad483b Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Diffstat (limited to 'drivers/mmc')
-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 217f90c4..bf87612d 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -221,7 +221,7 @@ static int mmc_fill_device_info(void)
unsigned int speed_idx;
unsigned int nb_blocks;
unsigned int freq_unit;
- int ret;
+ int ret = 0;
struct mmc_csd_sd_v2 *csd_sd_v2;
switch (mmc_dev_info->mmc_dev_type) {