From 261c73f3f6ce0f64ad7da46fd69600f57eec1c11 Mon Sep 17 00:00:00 2001 From: XuYing Date: Sat, 7 Jan 2017 19:04:27 +0800 Subject: 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 Signed-off-by: Rob Herring --- drivers/of/overlay.c | 1 - 1 file changed, 1 deletion(-) (limited to 'drivers/of') 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, 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++; -- cgit v1.2.3