From: Peter Tyser Date: Tue, 5 Aug 2008 15:51:57 +0000 (-0500) Subject: FIT: Fix handling of images without ramdisks X-Git-Tag: v2008.10-rc1~182^2~12^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=41266c9b5a5f873df3ec891bb0907616958b5602;p=platform%2Fkernel%2Fu-boot.git 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 Acked-by: Michal Simek --- diff --git a/common/image.c b/common/image.c index 535c302..c3545a7 100644 --- a/common/image.c +++ b/common/image.c @@ -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