summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorNobuhiro Iwamatsu <iwamatsu@nigauri.org>2010-10-19 17:14:15 +0900
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>2010-10-21 10:42:23 +0900
commitde03f8bc4a3f7bbb09bccbf2e3a5f14b45d5ad64 (patch)
tree148be6b271d58753d03537bfea7a6da876736d43 /arch
parent006442b35211472d325ee3955566cfb0d079e5b0 (diff)
downloadu-boot-imx-de03f8bc4a3f7bbb09bccbf2e3a5f14b45d5ad64.zip
u-boot-imx-de03f8bc4a3f7bbb09bccbf2e3a5f14b45d5ad64.tar.gz
u-boot-imx-de03f8bc4a3f7bbb09bccbf2e3a5f14b45d5ad64.tar.bz2
sh: Fix warning about uninitialized value of ramdisk_flags
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/sh/lib/bootm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/lib/bootm.c b/arch/sh/lib/bootm.c
index 019e8ec..f38d0b0 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;