Skip to contentSkip to conversation

2.6.23-rc4-mm1: memoryless nodes - cleanup "unused variable" warning

PATCH New Lee Schermerhorn 1 participant 1 message Sep 10, 2007

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

PATCH 1/1 2.6.23-rc4-mm1: memoryless nodes - cleanup "unused variable" warning

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.

 mm/page_alloc.c |    1 -
 1 file changed, 1 deletion(-)
mm/page_alloc.c +0 -1
Index: Linux/mm/page_alloc.c
===================================================================
@@ -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 [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>