ARM: mm: clean up membank size limit checks
authorCyril Chemparathy <cyril@ti.com>
Fri, 20 Jul 2012 17:16:41 +0000 (13:16 -0400)
committerWill Deacon <will.deacon@arm.com>
Thu, 30 May 2013 15:02:30 +0000 (16:02 +0100)
commit28d4bf7a2929c5e525171d249e12662e21130ec3
tree0d603e2c33ce17862101aa0c7e3e7a4c6c4075da
parentadf2e9fda34c1cfff2ee4e47078b1e142adb2c30
ARM: mm: clean up membank size limit checks

This patch cleans up the highmem sanity check code by simplifying the range
checks with a pre-calculated size_limit.  This patch should otherwise have no
functional impact on behavior.

This patch also removes a redundant (bank->start < vmalloc_limit) check, since
this is already covered by the !highmem condition.

Signed-off-by: Cyril Chemparathy <cyril@ti.com>
Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
Tested-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Subash Patel <subash.rp@samsung.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/mm/mmu.c