From: Johannes Weiner Date: Mon, 29 Apr 2013 22:07:52 +0000 (-0700) Subject: x86-64: remove dead debugging code for !pse setups X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6c7a2ca4c11bcc00f8b4b840a4fca694d20e8905;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git x86-64: remove dead debugging code for !pse setups No need to maintain addr_end and p_end when they are never actually read anywhere on !pse setups. Remove the dead code. Signed-off-by: Johannes Weiner Cc: Ben Hutchings Cc: Bernhard Schmidt Cc: Johannes Weiner Cc: Russell King Cc: Ingo Molnar Cc: Thomas Gleixner Cc: "H. Peter Anvin" Cc: Benjamin Herrenschmidt Cc: "Luck, Tony" Cc: Heiko Carstens Cc: David Miller Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c index 528c143f467c..8c696c9cc6c1 100644 --- a/arch/x86/mm/init_64.c +++ b/arch/x86/mm/init_64.c @@ -1311,9 +1311,6 @@ int __meminit vmemmap_populate(unsigned long start, unsigned long end, int node) if (!p) return -ENOMEM; - - addr_end = addr + PAGE_SIZE; - p_end = p + PAGE_SIZE; } else { next = pmd_addr_end(addr, end);