mips: ath79: ar933x: Avoid warning with gcc5
authorWills Wang <wills.wang@live.com>
Sun, 22 May 2016 03:59:49 +0000 (11:59 +0800)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Wed, 25 May 2016 23:34:14 +0000 (01:34 +0200)
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 <wills.wang@live.com>
arch/mips/mach-ath79/ar933x/ddr.c

index 91452bcc5345db4af581bd7da540ee3c91c1aa25..7f20d348855597f0fac635faffc79efe256bcd2e 100644 (file)
@@ -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;