diff options
author | XuYing <xuyiping@hisilicon.com> | 2017-01-07 06:04:27 -0500 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2017-01-09 15:21:23 -0500 |
commit | 261c73f3f6ce0f64ad7da46fd69600f57eec1c11 (patch) | |
tree | fc80c6451ec179885b78be0415f6f1f973e187ec | |
parent | 2956b338b729dcce90f9fa5e799df71908f09701 (diff) |
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>
-rw-r--r-- | drivers/of/overlay.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/of/overlay.c b/drivers/of/overlay.c index d4e337ebcf0f..7827786718d8 100644 --- a/drivers/of/overlay.c +++ b/drivers/of/overlay.c | |||
@@ -313,7 +313,6 @@ static int of_build_overlay_info(struct of_overlay *ov, | |||
313 | 313 | ||
314 | cnt = 0; | 314 | cnt = 0; |
315 | for_each_child_of_node(tree, node) { | 315 | for_each_child_of_node(tree, node) { |
316 | memset(&ovinfo[cnt], 0, sizeof(*ovinfo)); | ||
317 | err = of_fill_overlay_info(ov, node, &ovinfo[cnt]); | 316 | err = of_fill_overlay_info(ov, node, &ovinfo[cnt]); |
318 | if (err == 0) | 317 | if (err == 0) |
319 | cnt++; | 318 | cnt++; |