projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4b6be3
)
x86/mm/pageattr: Remove an unused variable in slow_virt_to_phys()
author
Dexuan Cui
<decui@microsoft.com>
Thu, 23 Apr 2015 08:07:08 +0000
(
01:07
-0700)
committer
Ingo Molnar
<mingo@kernel.org>
Mon, 11 May 2015 09:55:18 +0000
(11:55 +0200)
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>
arch/x86/mm/pageattr.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/mm/pageattr.c
b/arch/x86/mm/pageattr.c
index c77abd7f92a2cf2a576d4da075c9f2aa90a9f456..397838eb292b8308319f88ed77c7222d38f94a0f 100644
(file)
--- 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;