]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - common/image-fit.c
m68k: remove arch/m68k/lib/board.c
[people/ms/u-boot.git] / common / image-fit.c
index b47d11024f2beb007d049bc0cb54a43268d8bde1..778d2a148be67b921be72fb58a155a0813cccdc9 100644 (file)
@@ -1010,9 +1010,7 @@ int fit_image_verify(const void *fit, int image_noffset)
        }
 
        /* Process all hash subnodes of the component image node */
-       for (noffset = fdt_first_subnode(fit, image_noffset);
-            noffset >= 0;
-            noffset = fdt_next_subnode(fit, noffset)) {
+       fdt_for_each_subnode(fit, noffset, image_noffset) {
                const char *name = fit_get_name(fit, noffset, NULL);
 
                /*