of: overlay: Make node skipping in init_overlay_changeset() clearer
Make it more clear that nodes without "__overlay__" subnodes are skipped, by reverting the logic and using continue. This also reduces indentation level. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Rob Herring <robh@kernel.org>
This commit is contained in:
parent
35e691eddc
commit
589b754df3
|
@ -573,7 +573,9 @@ static int init_overlay_changeset(struct overlay_changeset *ovcs,
|
||||||
cnt = 0;
|
cnt = 0;
|
||||||
for_each_child_of_node(tree, node) {
|
for_each_child_of_node(tree, node) {
|
||||||
overlay_node = of_get_child_by_name(node, "__overlay__");
|
overlay_node = of_get_child_by_name(node, "__overlay__");
|
||||||
if (overlay_node) {
|
if (!overlay_node)
|
||||||
|
continue;
|
||||||
|
|
||||||
fragment = &fragments[cnt];
|
fragment = &fragments[cnt];
|
||||||
fragment->overlay = overlay_node;
|
fragment->overlay = overlay_node;
|
||||||
fragment->target = find_target_node(node);
|
fragment->target = find_target_node(node);
|
||||||
|
@ -585,7 +587,6 @@ static int init_overlay_changeset(struct overlay_changeset *ovcs,
|
||||||
|
|
||||||
cnt++;
|
cnt++;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* if there is a symbols fragment in ovcs->fragments[i] it is
|
* if there is a symbols fragment in ovcs->fragments[i] it is
|
||||||
|
|
Loading…
Reference in New Issue