]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
drivers/mmc/tegra2_mmc.c: fix GCC 4.6 warning
authorAnatolij Gustschin <agust@denx.de>
Wed, 28 Mar 2012 03:40:00 +0000 (03:40 +0000)
committerWolfgang Denk <wd@denx.de>
Fri, 30 Mar 2012 19:27:27 +0000 (21:27 +0200)
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>
drivers/mmc/tegra2_mmc.c

index 33cc8fb804165cb99fa8695d4af43e441334be39..fb8a57d162fcb2bf6ced82e1ac035f909a105895 100644 (file)
@@ -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");