From: Wills Wang Date: Sun, 22 May 2016 03:59:49 +0000 (+0800) Subject: mips: ath79: ar933x: Avoid warning with gcc5 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4349b55b9953d0bb591f13ca9985edf591348ced;p=project%2Fbcm63xx%2Fu-boot.git mips: ath79: ar933x: Avoid warning with gcc5 GCC 5.3 report a warning: 'upper' and 'lower' may be used uninitialized in this function [-Wmaybe-uninitialized]. Compiler might need explicit initializer. Signed-off-by: Wills Wang --- diff --git a/arch/mips/mach-ath79/ar933x/ddr.c b/arch/mips/mach-ath79/ar933x/ddr.c index 91452bcc53..7f20d34885 100644 --- a/arch/mips/mach-ath79/ar933x/ddr.c +++ b/arch/mips/mach-ath79/ar933x/ddr.c @@ -268,6 +268,8 @@ void ddr_tap_tuning(void) dir = 1; tap = readl(regs + AR71XX_DDR_REG_TAP_CTRL0); val = tap; + upper = tap; + lower = tap; while (!done) { err = 0;