Skip to content
Snippets Groups Projects
Commit 60e242ed authored by Anatolij Gustschin's avatar Anatolij Gustschin Committed by Wolfgang Denk
Browse files

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: default avatarAnatolij Gustschin <agust@denx.de>
Cc: Doug Anderson <dianders@chromium.org>
Cc: Tom Warren <twarren@nvidia.com>
parent 73733230
No related branches found
No related tags found
No related merge requests found
...@@ -162,7 +162,7 @@ static int mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, ...@@ -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; struct mmc_host *host = (struct mmc_host *)mmc->priv;
int flags, i; int flags, i;
int result; int result;
unsigned int mask; unsigned int mask = 0;
unsigned int retry = 0x100000; unsigned int retry = 0x100000;
debug(" mmc_send_cmd called\n"); debug(" mmc_send_cmd called\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment