mm: mminit_validate_memmodel_limits(): remove redundant test

In case if start_pfn overlap the upper bound no need to test end_pfn again
since we have it already trimmed.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Reviewed-by: Christoph Lameter <cl@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Cyrill Gorcunov 2009-03-31 15:19:25 -07:00 committed by Linus Torvalds
parent 0f043a81eb
commit ef161a9863
1 changed files with 1 additions and 3 deletions

View File

@ -164,9 +164,7 @@ void __meminit mminit_validate_memmodel_limits(unsigned long *start_pfn,
WARN_ON_ONCE(1); WARN_ON_ONCE(1);
*start_pfn = max_sparsemem_pfn; *start_pfn = max_sparsemem_pfn;
*end_pfn = max_sparsemem_pfn; *end_pfn = max_sparsemem_pfn;
} } else if (*end_pfn > max_sparsemem_pfn) {
if (*end_pfn > max_sparsemem_pfn) {
mminit_dprintk(MMINIT_WARNING, "pfnvalidation", mminit_dprintk(MMINIT_WARNING, "pfnvalidation",
"End of range %lu -> %lu exceeds SPARSEMEM max %lu\n", "End of range %lu -> %lu exceeds SPARSEMEM max %lu\n",
*start_pfn, *end_pfn, max_sparsemem_pfn); *start_pfn, *end_pfn, max_sparsemem_pfn);