]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - common/image.c
image-fit: Fix fit_get_node_from_config semantics
[people/ms/u-boot.git] / common / image.c
index 7ad04ca19b80dbc6b627daae558a86423cdd7e9c..c8d9bc834d8588312afbd506ae093a872a8cda93 100644 (file)
@@ -1078,7 +1078,7 @@ int boot_get_ramdisk(int argc, char * const argv[], bootm_headers_t *images,
                        rd_addr = map_to_sysmem(images->fit_hdr_os);
                        rd_noffset = fit_get_node_from_config(images,
                                        FIT_RAMDISK_PROP, rd_addr);
-                       if (rd_noffset == -ENOLINK)
+                       if (rd_noffset == -ENOENT)
                                return 0;
                        else if (rd_noffset < 0)
                                return 1;