Skip to content

Commit

Permalink
of: remove redundant memset in overlay
Browse files Browse the repository at this point in the history
memset in of_build_overlay_info is redundant, the ovinfo has been
zeroed in of_fill_overlay_info when error.

Signed-off-by: YiPing Xu <[email protected]>
Signed-off-by: Rob Herring <[email protected]>
  • Loading branch information
xu-yiping authored and robherring committed Jan 9, 2017
1 parent 2956b33 commit 261c73f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/of/overlay.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit 261c73f

Please sign in to comment.