[patch 1/3] remove unused pgdat in sparsemem add_section

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Matt Tolentino <[email protected]>
---

diff -urNp linux-2.6.15-rc5/mm/memory_hotplug.c linux-2.6.15-rc5-mt/mm/memory_hotplug.c
--- linux-2.6.15-rc5/mm/memory_hotplug.c	2005-12-04 00:10:42.000000000 -0500
+++ linux-2.6.15-rc5-mt/mm/memory_hotplug.c	2005-12-08 15:41:46.000000000 -0500
@@ -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;
 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux