Skip to contentSkip to conversation

remove unused pgdat in sparsemem add_section

PATCH In review Matt Tolentino 1 participant 1 message Dec 9, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/3 remove unused pgdat in sparsemem add_section

Trivial patch to remove an used variable in the __add_section function. Looks like pgdat updating was moved into a subfunction.

---

mm/memory_hotplug.c +0 -1
diff -urNp linux-2.6.15-rc5/mm/memory_hotplug.c linux-2.6.15-rc5-mt/mm/memory_hotplug.c
@@ -42,7 +42,6 @@ extern int sparse_add_one_section(struct
 				  int nr_pages);
 static int __add_section(struct zone *zone, unsigned long phys_start_pfn)
 {
-	struct pglist_data *pgdat = zone->zone_pgdat;
 	int nr_pages = PAGES_PER_SECTION;
 	int ret;