mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 07:04:24 +00:00
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: YiPing Xu <xuyiping@hisilicon.com> Signed-off-by: Rob Herring <robh@kernel.org>
This commit is contained in:
parent
2956b338b7
commit
261c73f3f6
1 changed files with 0 additions and 1 deletions
|
@ -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++;
|
||||
|
|
Loading…
Reference in a new issue