From: Nobuhiro Iwamatsu Date: Tue, 19 Oct 2010 08:14:15 +0000 (+0900) Subject: sh: Fix warning about uninitialized value of ramdisk_flags X-Git-Tag: v2010.12-rc1~37^2~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=de03f8bc4a3f7bbb09bccbf2e3a5f14b45d5ad64;p=u-boot sh: Fix warning about uninitialized value of ramdisk_flags Signed-off-by: Nobuhiro Iwamatsu --- diff --git a/arch/sh/lib/bootm.c b/arch/sh/lib/bootm.c index 019e8ec172..f38d0b0e8e 100644 --- a/arch/sh/lib/bootm.c +++ b/arch/sh/lib/bootm.c @@ -103,7 +103,7 @@ int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *ima sh_check_cmd_arg(bootargs, CMD_ARG_RD_DOLOAD, 10); /* Initrd */ if (images->rd_start || images->rd_end) { - unsigned long ramdisk_flags; + unsigned long ramdisk_flags = 0; int val = sh_check_cmd_arg(bootargs, CMD_ARG_RD_PROMPT, 10); if (val == 1) ramdisk_flags |= RD_PROMPT;