Commit f14516fb authored by Alexander Kuleshov's avatar Alexander Kuleshov Committed by Linus Torvalds

mm/memblock: remove rgnbase and rgnsize variables

Remove rgnbase and rgnsize variables from memblock_overlaps_region().
We use these variables only for passing to the memblock_addrs_overlap()
function and that's all.  Let's remove them.
Signed-off-by: default avatarAlexander Kuleshov <kuleshovmail@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 5020e285
...@@ -96,13 +96,10 @@ bool __init_memblock memblock_overlaps_region(struct memblock_type *type, ...@@ -96,13 +96,10 @@ bool __init_memblock memblock_overlaps_region(struct memblock_type *type,
{ {
unsigned long i; unsigned long i;
for (i = 0; i < type->cnt; i++) { for (i = 0; i < type->cnt; i++)
phys_addr_t rgnbase = type->regions[i].base; if (memblock_addrs_overlap(base, size, type->regions[i].base,
phys_addr_t rgnsize = type->regions[i].size; type->regions[i].size))
if (memblock_addrs_overlap(base, size, rgnbase, rgnsize))
break; break;
}
return i < type->cnt; return i < type->cnt;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment