提交 261c73f3 编写于 作者: X XuYing 提交者: Rob Herring

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: NYiPing Xu <xuyiping@hisilicon.com>
Signed-off-by: NRob Herring <robh@kernel.org>
上级 2956b338
......@@ -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++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册