Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1395270 > unrolled thread
| Started by | Reza Arbab <arbab@linux.vnet.ibm.com> |
|---|---|
| First post | 2016-05-05 20:40 +0200 |
| Last post | 2016-05-05 20:40 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH] drivers/base/memory: remove unused var from memory_block_action() Reza Arbab <arbab@linux.vnet.ibm.com> - 2016-05-05 20:40 +0200
| From | Reza Arbab <arbab@linux.vnet.ibm.com> |
|---|---|
| Date | 2016-05-05 20:40 +0200 |
| Subject | [PATCH] drivers/base/memory: remove unused var from memory_block_action() |
| Message-ID | <rvwlP-5gq-3@gated-at.bofh.it> |
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
Back to top | Article view | linux.kernel
csiph-web