mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
FIT: Fix handling of images without ramdisks
boot_get_ramdisk() should not treat the case when a FIT image does not contain a ramdisk as an error. Signed-off-by: Peter Tyser <ptyser@xes-inc.com> Acked-by: Michal Simek <monstr@monstr.eu>
This commit is contained in:
parent
21f971ec26
commit
41266c9b5a
1 changed files with 1 additions and 1 deletions
|
@ -833,7 +833,7 @@ int boot_get_ramdisk (int argc, char *argv[], bootm_headers_t *images,
|
|||
rd_noffset = fit_conf_get_ramdisk_node (fit_hdr, cfg_noffset);
|
||||
if (rd_noffset < 0) {
|
||||
debug ("* ramdisk: no ramdisk in config\n");
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue