mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
sh: Fix warning about uninitialized value of ramdisk_flags
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
This commit is contained in:
parent
006442b352
commit
de03f8bc4a
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue