zone_movable_pfn is zero-initialized and only set by
find_zone_movable_pfns_for_nodes(), which runs once during boot right
after the memset, so the memset has no effect.
Remove redundant memset. No functional change.
Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>
---
mm/mm_init.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/mm/mm_init.c b/mm/mm_init.c
index 711f821f7b3c..144bb4042942 100644
--- a/mm/mm_init.c
+++ b/mm/mm_init.c
@@ -1844,7 +1844,6 @@ static void __init free_area_init(void)
}
/* Find the PFNs that ZONE_MOVABLE begins at in each node */
- memset(zone_movable_pfn, 0, sizeof(zone_movable_pfn));
find_zone_movable_pfns_for_nodes();
/* Print out the zone ranges */
--
2.43.0