aboutsummaryrefslogtreecommitdiff
path: root/common/image.c
diff options
context:
space:
mode:
authorPeter Tyser <ptyser@xes-inc.com>2008-08-05 10:51:57 -0500
committerWolfgang Denk <wd@denx.de>2008-08-09 17:36:06 +0200
commit41266c9b5a5f873df3ec891bb0907616958b5602 (patch)
tree71506e202ae0b17aa846147d46ffe360f90db0a0 /common/image.c
parent21f971ec265f6042ec21636d55d06a6bc0751077 (diff)
downloadu-boot-linaro-natty-41266c9b5a5f873df3ec891bb0907616958b5602.tar.gz
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>
Diffstat (limited to 'common/image.c')
-rw-r--r--common/image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/image.c b/common/image.c
index 535c302d4..c3545a7c7 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