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)
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>

No differences found