Skip to contentSkip to conversation

x86, pageattr: remove an unused variable in slow_virt_to_phys()

PATCH New Dexuan Cui 2 participants 2 messages Apr 23, 2015 – May 11, 2015

Subsystems (2)
lore
Share & tools
lore

Dexuan Cui

author
#0 lore raw

PATCH 1/1 x86, pageattr: remove an unused variable in slow_virt_to_phys()

The patch doesn't change any logic.

---
 arch/x86/mm/pageattr.c | 2 --
 1 file changed, 2 deletions(-)
arch/x86/mm/pageattr.c +0 -2
index 89af288..4aa736e 100644
@@ -418,13 +418,11 @@ phys_addr_t slow_virt_to_phys(void *__virt_addr)
 	phys_addr_t phys_addr;
 	unsigned long offset;
 	enum pg_level level;
-	unsigned long psize;
 	unsigned long pmask;
 	pte_t *pte;
 
 	pte = lookup_address(virt_addr, &level);
 	BUG_ON(!pte);
-	psize = page_level_size(level);
 	pmask = page_level_mask(level);
 	offset = virt_addr & ~pmask;
 	phys_addr = (phys_addr_t)pte_pfn(*pte) << PAGE_SHIFT;
Signature · 1 line
1.9.1
#1 lore raw

[tip:x86/mm] x86/mm/pageattr: Remove an unused variable in slow_virt_to_phys()

x86/mm/pageattr: Remove an unused variable in slow_virt_to_phys()
Commit-ID:  1fcb61c52bbdbbc46d132acf7dab9ad0eca433fe
Gitweb:     http://git.kernel.org/tip/1fcb61c52bbdbbc46d132acf7dab9ad0eca433fe
Author:     Dexuan Cui <[email protected]>
AuthorDate: Thu, 23 Apr 2015 01:07:08 -0700
Committer:  Ingo Molnar <[email protected]>
CommitDate: Mon, 11 May 2015 11:55:18 +0200

x86/mm/pageattr: Remove an unused variable in slow_virt_to_phys()

The patch doesn't change any logic.

---
 arch/x86/mm/pageattr.c | 2 --
 1 file changed, 2 deletions(-)
arch/x86/mm/pageattr.c +0 -2
index c77abd7..397838e 100644
@@ -417,13 +417,11 @@ phys_addr_t slow_virt_to_phys(void *__virt_addr)
 	phys_addr_t phys_addr;
 	unsigned long offset;
 	enum pg_level level;
-	unsigned long psize;
 	unsigned long pmask;
 	pte_t *pte;
 
 	pte = lookup_address(virt_addr, &level);
 	BUG_ON(!pte);
-	psize = page_level_size(level);
 	pmask = page_level_mask(level);
 	offset = virt_addr & ~pmask;
 	phys_addr = (phys_addr_t)pte_pfn(*pte) << PAGE_SHIFT;