]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/image.c
image: Fix loop condition to avoid warning
[karo-tx-uboot.git] / common / image.c
index ca721c5401c29df4907576e3765b7c647afa0c5c..678588d2e330f3b151a89e1cdb0cb338fffe4c20 100644 (file)
@@ -1215,10 +1215,10 @@ int boot_get_loadable(int argc, char * const argv[], bootm_headers_t *images,
                conf_noffset = fit_conf_get_node(buf, images->fit_uname_cfg);
 
                for (loadables_index = 0;
-                    !fdt_get_string_index(buf, conf_noffset,
+                    fdt_get_string_index(buf, conf_noffset,
                                FIT_LOADABLE_PROP,
                                loadables_index,
-                               (const char **)&uname) > 0;
+                               (const char **)&uname) == 0;
                     loadables_index++)
                {
                        fit_img_result = fit_image_load(images,