[PATCH v2 17/22] ARM: mm: clean up membank size limit checks

2012-08-10 Thread Cyril Chemparathy
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

[PATCH v2 17/22] ARM: mm: clean up membank size limit checks

2012-08-10 Thread Cyril Chemparathy
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