Skip to content

Commit f16f091

Browse files
0xAXtorvalds
authored andcommitted
mm/page_alloc.c: remove unused struct zone *z variable
Remove unused struct zone *z variable which appeared in 86051ca ("mm: fix usemap initialization"). Signed-off-by: Alexander Kuleshov <[email protected]> Acked-by: Kirill A. Shutemov <[email protected]> Acked-by: Vlastimil Babka <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 7f43add commit f16f091

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

mm/page_alloc.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4490,7 +4490,6 @@ void __meminit memmap_init_zone(unsigned long size, int nid, unsigned long zone,
44904490
unsigned long end_pfn = start_pfn + size;
44914491
pg_data_t *pgdat = NODE_DATA(nid);
44924492
unsigned long pfn;
4493-
struct zone *z;
44944493
unsigned long nr_initialised = 0;
44954494

44964495
if (highest_memmap_pfn < end_pfn - 1)
@@ -4503,7 +4502,6 @@ void __meminit memmap_init_zone(unsigned long size, int nid, unsigned long zone,
45034502
if (altmap && start_pfn == altmap->base_pfn)
45044503
start_pfn += altmap->reserve;
45054504

4506-
z = &pgdat->node_zones[zone];
45074505
for (pfn = start_pfn; pfn < end_pfn; pfn++) {
45084506
/*
45094507
* There can be holes in boot-time mem_map[]s

0 commit comments

Comments
 (0)