]> git.sur5r.net Git - u-boot/commitdiff
sh: Fix warning about uninitialized value of ramdisk_flags
authorNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Tue, 19 Oct 2010 08:14:15 +0000 (17:14 +0900)
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Thu, 21 Oct 2010 01:42:23 +0000 (10:42 +0900)
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
arch/sh/lib/bootm.c

index 019e8ec172ace0a36dd051d4ba825eabab7972b2..f38d0b0e8e3fbc4e9276ff24cd212a2ea43b0a76 100644 (file)
@@ -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;