Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

XuYing and committed by
Rob Herring
261c73f3 2956b338

-1
-1
drivers/of/overlay.c
··· 313 313 314 314 cnt = 0; 315 315 for_each_child_of_node(tree, node) { 316 - memset(&ovinfo[cnt], 0, sizeof(*ovinfo)); 317 316 err = of_fill_overlay_info(ov, node, &ovinfo[cnt]); 318 317 if (err == 0) 319 318 cnt++;