[ARM] 5272/1: remove conditional compilation in show_pte()
authorNicolas Pitre <nico@cam.org>
Tue, 30 Sep 2008 15:10:11 +0000 (16:10 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 30 Sep 2008 15:41:04 +0000 (16:41 +0100)
The PTRS_PER_PMD != 1 condition can be evaluated with C code and
optimized at compile time.

Signed-off-by: Nicolas Pitre <nico@marvell.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/fault.c

index fcdae537a28f09e894686d758652a894ca19c1c5..2df8d9facf5741c060bb9f028c93b7c3bbe33a6e 100644 (file)
@@ -72,9 +72,8 @@ void show_pte(struct mm_struct *mm, unsigned long addr)
                }
 
                pmd = pmd_offset(pgd, addr);
-#if PTRS_PER_PMD != 1
-               printk(", *pmd=%08lx", pmd_val(*pmd));
-#endif
+               if (PTRS_PER_PMD != 1)
+                       printk(", *pmd=%08lx", pmd_val(*pmd));
 
                if (pmd_none(*pmd))
                        break;