Skip to content

Commit a236c71

Browse files
akpm00gregkh
authored andcommitted
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>
1 parent 5409d2c commit a236c71

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/base/memory.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ memory_block_action(unsigned long phys_index, unsigned long action)
278278
static int memory_block_change_state(struct memory_block *mem,
279279
unsigned long to_state, unsigned long from_state_req)
280280
{
281-
int i, ret = 0;
281+
int ret = 0;
282282

283283
mutex_lock(&mem->state_mutex);
284284

0 commit comments

Comments
 (0)