From 60e242ed245642f73fc59a3ec39c676910513bbd Mon Sep 17 00:00:00 2001 From: Anatolij Gustschin Date: Wed, 28 Mar 2012 03:40:00 +0000 Subject: 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 Cc: Doug Anderson Cc: Tom Warren --- drivers/mmc/tegra2_mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/mmc/tegra2_mmc.c') diff --git a/drivers/mmc/tegra2_mmc.c b/drivers/mmc/tegra2_mmc.c index 33cc8fb..fb8a57d 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"); -- cgit v1.1