projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2956b33
)
of: remove redundant memset in overlay
author
XuYing
<xuyiping@hisilicon.com>
Sat, 7 Jan 2017 11:04:27 +0000
(19:04 +0800)
committer
Rob Herring
<robh@kernel.org>
Mon, 9 Jan 2017 20:21:23 +0000
(14:21 -0600)
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>
drivers/of/overlay.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/of/overlay.c
b/drivers/of/overlay.c
index d4e337ebcf0f3fa4e6d4add5dd69f446e05a653a..7827786718d815c0a92a026b5b07cf8d61b6f542 100644
(file)
--- 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++;