From 9730bcdc2f6c237fde66b7d81681e380ef0bdedf Mon Sep 17 00:00:00 2001 From: "xypron.glpk@gmx.de" Date: Sun, 30 Jul 2017 20:09:38 +0200 Subject: arm: spear: do not return random value from stack If the NOR device is not available do not return a random value from the stack. Signed-off-by: Heinrich Schuchardt diff --git a/arch/arm/cpu/arm926ejs/spear/spl.c b/arch/arm/cpu/arm926ejs/spear/spl.c index a60f583..ba1e559 100644 --- a/arch/arm/cpu/arm926ejs/spear/spl.c +++ b/arch/arm/cpu/arm926ejs/spear/spl.c @@ -222,7 +222,7 @@ static void snor_init(void) u32 spl_boot_device(void) { - u32 mode; + u32 mode = 0; /* Currently only SNOR is supported as the only */ if (snor_boot_selected()) { -- cgit v0.10.2