Skip to contentSkip to conversation

drivers/base/memory: remove unused var from memory_block_action()

PATCH New Reza Arbab 1 participant 1 message May 5, 2016

Subsystems (2)
lore
Share & tools
lore

Reza Arbab

author
#0 lore raw

PATCH 1/1 drivers/base/memory: remove unused var from memory_block_action()

Remove the unused variable first_page.

---
 drivers/base/memory.c | 2 --
 1 file changed, 2 deletions(-)
drivers/base/memory.c +0 -2
index 213456c..961e2cf 100644
@@ -226,11 +226,9 @@ memory_block_action(unsigned long phys_index, unsigned long action, int online_t
 {
 	unsigned long start_pfn;
 	unsigned long nr_pages = PAGES_PER_SECTION * sections_per_block;
-	struct page *first_page;
 	int ret;
 
 	start_pfn = section_nr_to_pfn(phys_index);
-	first_page = pfn_to_page(start_pfn);
 
 	switch (action) {
 	case MEM_ONLINE:
Signature · 1 line
1.8.3.1