public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drivers/base/memory: remove unused var from memory_block_action()
@ 2016-05-05 18:38 Reza Arbab
  0 siblings, 0 replies; only message in thread
From: Reza Arbab @ 2016-05-05 18:38 UTC (permalink / raw)
  To: Greg Kroah-Hartman, linux-kernel

Remove the unused variable first_page.

Signed-off-by: Reza Arbab <arbab@linux.vnet.ibm.com>
---
 drivers/base/memory.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/base/memory.c b/drivers/base/memory.c
index 213456c..961e2cf 100644
--- a/drivers/base/memory.c
+++ b/drivers/base/memory.c
@@ -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:
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-05-05 18:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-05 18:38 [PATCH] drivers/base/memory: remove unused var from memory_block_action() Reza Arbab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox