
The zonelist structure is part of the pgdat, which is zeroed
by every architecture.  Clearing it again is not necessary.

*Not* clearing it like this allows the code to be reused by
the memory hotplug code.
Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
---

 memhotplug-dave/mm/page_alloc.c |    8 --------
 1 files changed, 8 deletions(-)

diff -puN mm/page_alloc.c~A2.2-dont-memset-zonelists mm/page_alloc.c
--- memhotplug/mm/page_alloc.c~A2.2-dont-memset-zonelists	2004-12-10 13:52:26.000000000 -0800
+++ memhotplug-dave/mm/page_alloc.c	2004-12-10 13:52:26.000000000 -0800
@@ -1436,13 +1436,6 @@ static void __init build_zonelists(pg_da
 		zonelist->zones[0] = NULL;
 	}
 
-	/* initialize zonelists */
-	for (i = 0; i < GFP_ZONETYPES; i++) {
-		zonelist = pgdat->node_zonelists + i;
-		memset(zonelist, 0, sizeof(*zonelist));
-		zonelist->zones[0] = NULL;
-	}
-
 	/* NUMA-aware ordering of nodes */
 	local_node = pgdat->node_id;
 	load = numnodes;
@@ -1488,7 +1481,6 @@ static void __init build_zonelists(pg_da
 		struct zonelist *zonelist;
 
 		zonelist = pgdat->node_zonelists + i;
-		memset(zonelist, 0, sizeof(*zonelist));
 
 		j = 0;
 		k = ZONE_NORMAL;
_
