[ARM] Fix warning in consistent.c

No need for 'cr' to be a local variable, which is unused in the
SMP case, and only used once in the UP case. Just call get_cr()
directly.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by Russell King and committed by Russell King 67f3a588 4e19025b

+1 -2
+1 -2
arch/arm/mm/ioremap.c
··· 303 303 int err; 304 304 unsigned long addr; 305 305 struct vm_struct * area; 306 - unsigned int cr = get_cr(); 307 306 308 307 /* 309 308 * High mappings must be supersection aligned ··· 316 317 addr = (unsigned long)area->addr; 317 318 318 319 #ifndef CONFIG_SMP 319 - if ((((cpu_architecture() >= CPU_ARCH_ARMv6) && (cr & CR_XP)) || 320 + if ((((cpu_architecture() >= CPU_ARCH_ARMv6) && (get_cr() & CR_XP)) || 320 321 cpu_is_xsc3()) && 321 322 !((__pfn_to_phys(pfn) | size | addr) & ~SUPERSECTION_MASK)) { 322 323 area->flags |= VM_ARM_SECTION_MAPPING;