summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2012-03-28 03:40:00 +0000
committerWolfgang Denk <wd@denx.de>2012-03-30 21:27:27 +0200
commit60e242ed245642f73fc59a3ec39c676910513bbd (patch)
tree82477d715cb41ad1e1d29ad3cc3013f4eeebfa44
parent7373323056f524b3136cee4911f1debc23723ae7 (diff)
drivers/mmc/tegra2_mmc.c: fix GCC 4.6 warning
Fix: tegra2_mmc.c: In function 'mmc_send_cmd': tegra2_mmc.c:230:3: warning: 'mask' may be used uninitialized in this function [-Wuninitialized] Signed-off-by: Anatolij Gustschin <agust@denx.de> Cc: Doug Anderson <dianders@chromium.org> Cc: Tom Warren <twarren@nvidia.com>
-rw-r--r--drivers/mmc/tegra2_mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/tegra2_mmc.c b/drivers/mmc/tegra2_mmc.c
index 33cc8fb804..fb8a57d162 100644
--- a/drivers/mmc/tegra2_mmc.c
+++ b/drivers/mmc/tegra2_mmc.c
@@ -162,7 +162,7 @@ static int mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd,
struct mmc_host *host = (struct mmc_host *)mmc->priv;
int flags, i;
int result;
- unsigned int mask;
+ unsigned int mask = 0;
unsigned int retry = 0x100000;
debug(" mmc_send_cmd called\n");