diff options
| author | Sang-Heon Jeon <ekffu200098@gmail.com> | 2026-07-21 00:09:13 +0900 |
|---|---|---|
| committer | Mike Rapoport (Microsoft) <rppt@kernel.org> | 2026-07-22 11:15:26 +0300 |
| commit | d7bfd98ba01d2af48cc238d5525201c83fdef251 (patch) | |
| tree | 87bef9146bd19eaeb6671634af004a0c70912638 | |
| parent | a5d67c54d414ee707333ce179d4492e99122e5b6 (diff) | |
| download | linux-d7bfd98ba01d2af48cc238d5525201c83fdef251.tar.gz linux-d7bfd98ba01d2af48cc238d5525201c83fdef251.zip | |
mm/mm_init: remove redundant memset in free_area_init()
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>
Link: https://patch.msgid.link/20260720150915.756749-1-ekffu200098@gmail.com
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
| -rw-r--r-- | mm/mm_init.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/mm_init.c b/mm/mm_init.c index 0f64909e8d20..10eda88bf476 100644 --- a/mm/mm_init.c +++ b/mm/mm_init.c @@ -1836,7 +1836,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 */ |
