From: Andy Whitcroft Date: Fri, 6 Jan 2006 08:10:33 +0000 (-0800) Subject: [PATCH] memhotplug: __add_section remove unused pgdat definition X-Git-Tag: v2.6.16-rc1~936^2~281 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=5ac24eefd1d89bc6aa2817741c3bd5d4205b2efd;p=linux-2.6-omap-h63xx.git [PATCH] memhotplug: __add_section remove unused pgdat definition __add_section defines an unused pointer to the zones pgdat. Remove this definition. This fixes a compile warning. Signed-off-by: Andy Whitcroft Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index f6d4af8af8a..a918f77f02f 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -42,7 +42,6 @@ extern int sparse_add_one_section(struct zone *zone, unsigned long start_pfn, 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;