From: Allen Martin Date: Fri, 19 Oct 2012 21:18:03 +0000 (+0000) Subject: tegra20: initialize variable to avoid compiler warning X-Git-Tag: v2013.01-rc2~146^2~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ee2e185f62d7b9962fa295acbb55688fbace4ad4;p=u-boot tegra20: initialize variable to avoid compiler warning Initialize this variable to avoid a compiler warning about possible use of uninitialized variable with gcc 4.4.6. Signed-off-by: Allen Martin Acked-by: Stephen Warren Acked-by: Simon Glass Tested-by: Simon Glass Signed-off-by: Tom Warren --- diff --git a/arch/arm/cpu/tegra20-common/emc.c b/arch/arm/cpu/tegra20-common/emc.c index 97420d7066..90edf00a5e 100644 --- a/arch/arm/cpu/tegra20-common/emc.c +++ b/arch/arm/cpu/tegra20-common/emc.c @@ -257,7 +257,7 @@ static int decode_emc(const void *blob, unsigned rate, struct emc_ctlr **emcp, int tegra_set_emc(const void *blob, unsigned rate) { struct emc_ctlr *emc; - const u32 *table; + const u32 *table = NULL; int err, i; err = decode_emc(blob, rate, &emc, &table);