summaryrefslogtreecommitdiffstats
path: root/arch/x86/mm
diff options
context:
space:
mode:
authorDexuan Cui <decui@microsoft.com>2015-04-23 10:07:08 +0200
committerIngo Molnar <mingo@kernel.org>2015-05-11 11:55:18 +0200
commit1fcb61c52bbdbbc46d132acf7dab9ad0eca433fe (patch)
treeb1a19cb320b0697d4df42d2689288c5855fd2d41 /arch/x86/mm
parentx86/mm: Add ioremap_uc() helper to map memory uncacheable (not UC-) (diff)
downloadlinux-1fcb61c52bbdbbc46d132acf7dab9ad0eca433fe.tar.xz
linux-1fcb61c52bbdbbc46d132acf7dab9ad0eca433fe.zip
x86/mm/pageattr: Remove an unused variable in slow_virt_to_phys()
The patch doesn't change any logic. Signed-off-by: Dexuan Cui <decui@microsoft.com> Cc: Borislav Petkov <bp@alien8.de> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/1429776428-4475-1-git-send-email-decui@microsoft.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/mm')
-rw-r--r--arch/x86/mm/pageattr.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c
index c77abd7f92a2..397838eb292b 100644
--- a/arch/x86/mm/pageattr.c
+++ b/arch/x86/mm/pageattr.c
@@ -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;