drivers/base/memory.c: fix warning due to "memory hotplug: Speed up add/remove when...
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 12 May 2011 19:45:31 +0000 (12:45 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 12 May 2011 20:27:19 +0000 (13:27 -0700)
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>
drivers/base/memory.c

index c4c443d..0a134a4 100644 (file)
@@ -278,7 +278,7 @@ memory_block_action(unsigned long phys_index, unsigned long action)
 static int memory_block_change_state(struct memory_block *mem,
                unsigned long to_state, unsigned long from_state_req)
 {
-       int i, ret = 0;
+       int ret = 0;
 
        mutex_lock(&mem->state_mutex);