aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2011-05-12 15:45:31 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-05-12 16:27:19 -0400
commita236c71766a5f69edf189e2eaeb0aa587c8c5684 (patch)
treef0db043b6e4364a28bf4f190a3fefd9e96bfff99
parent5409d2cd841cf2c76396470e566500f6505f8d2a (diff)
drivers/base/memory.c: fix warning due to "memory hotplug: Speed up add/remove when blocks are larger than PAGES_PER_SECTION"
drivers/base/memory.c: In function 'memory_block_change_state': drivers/base/memory.c:281: warning: unused variable 'i' less beer, more testing Cc: Anton Blanchard <anton@samba.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/base/memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/memory.c b/drivers/base/memory.c
index c4c443db7cbf..0a134a424a37 100644
--- a/drivers/base/memory.c
+++ b/drivers/base/memory.c
@@ -278,7 +278,7 @@ memory_block_action(unsigned long phys_index, unsigned long action)
278static int memory_block_change_state(struct memory_block *mem, 278static int memory_block_change_state(struct memory_block *mem,
279 unsigned long to_state, unsigned long from_state_req) 279 unsigned long to_state, unsigned long from_state_req)
280{ 280{
281 int i, ret = 0; 281 int ret = 0;
282 282
283 mutex_lock(&mem->state_mutex); 283 mutex_lock(&mem->state_mutex);
284 284