linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] 2.6.23-rc4-mm1:  memoryless nodes - cleanup "unused variable" warning
@ 2007-09-10 16:43 Lee Schermerhorn
  0 siblings, 0 replies; only message in thread
From: Lee Schermerhorn @ 2007-09-10 16:43 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-mm, Eric Whitney

PATCH 2.6.23-rc4-mm1 - remove unused pgdat variable

When I replaced the for loop in page_alloc.c:find_next_best_node()
to scan only nodes with memory, the variable pgdat became unused.
I forgot to remove it and didn't notice the warning in the log.

Signed-off-by:  Lee Schermerhorn <lee.schermerhorn@hp.com>

 mm/page_alloc.c |    1 -
 1 file changed, 1 deletion(-)

Index: Linux/mm/page_alloc.c
===================================================================
--- Linux.orig/mm/page_alloc.c	2007-09-10 12:21:31.000000000 -0400
+++ Linux/mm/page_alloc.c	2007-09-10 12:22:23.000000000 -0400
@@ -2130,7 +2130,6 @@ static int find_next_best_node(int node,
 	}
 
 	for_each_node_state(n, N_HIGH_MEMORY) {
-		pg_data_t *pgdat = NODE_DATA(n);
 		cpumask_t tmp;
 
 		/* Don't want a node to appear more than once */


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-09-10 16:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-10 16:43 [PATCH] 2.6.23-rc4-mm1: memoryless nodes - cleanup "unused variable" warning Lee Schermerhorn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox