Skip to content

Commit

Permalink
[ARM] 5272/1: remove conditional compilation in show_pte()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nicolas Pitre authored and Russell King committed Sep 30, 2008
1 parent dfcc644 commit da46c79
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions arch/arm/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit da46c79

Please sign in to comment.