瀏覽代碼

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>
Peter Tyser 16 年之前
父節點
當前提交
41266c9b5a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      common/image.c

+ 1 - 1
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);
 			rd_noffset = fit_conf_get_ramdisk_node (fit_hdr, cfg_noffset);
 			if (rd_noffset < 0) {
 			if (rd_noffset < 0) {
 				debug ("*  ramdisk: no ramdisk in config\n");
 				debug ("*  ramdisk: no ramdisk in config\n");
-				return 1;
+				return 0;
 			}
 			}
 		}
 		}
 #endif
 #endif