Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 261c73f3 authored by XuYing's avatar XuYing Committed by Rob Herring
Browse files

of: remove redundant memset in overlay



memset in of_build_overlay_info is redundant, the ovinfo has been
zeroed in of_fill_overlay_info when error.

Signed-off-by: default avatarYiPing Xu <xuyiping@hisilicon.com>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 2956b338
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -313,7 +313,6 @@ static int of_build_overlay_info(struct of_overlay *ov,

	cnt = 0;
	for_each_child_of_node(tree, node) {
		memset(&ovinfo[cnt], 0, sizeof(*ovinfo));
		err = of_fill_overlay_info(ov, node, &ovinfo[cnt]);
		if (err == 0)
			cnt++;