Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da46c79a authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Russell King
Browse files

[ARM] 5272/1: remove conditional compilation in show_pte()



The PTRS_PER_PMD != 1 condition can be evaluated with C code and
optimized at compile time.

Signed-off-by: default avatarNicolas Pitre <nico@marvell.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent dfcc6449
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -72,9 +72,8 @@ void show_pte(struct mm_struct *mm, unsigned long addr)
		}

		pmd = pmd_offset(pgd, addr);
#if PTRS_PER_PMD != 1
		if (PTRS_PER_PMD != 1)
			printk(", *pmd=%08lx", pmd_val(*pmd));
#endif

		if (pmd_none(*pmd))
			break;