mm/memblock: remove rgnbase and rgnsize variables
PATCH 1/1 mm/memblock: remove rgnbase and rgnsize variables
This patch removes rgnbase and rgnsize variables from the memblock_overlaps_region() function. We use these variables only for passing to the memblock_addrs_overlap() function and that's all. Let's remove them.
Signed-off-by Alexander Kuleshov <[email protected]>
--- mm/memblock.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
mm/memblock.c +3 -6
@@ -96,13 +96,10 @@ bool __init_memblock memblock_overlaps_region(struct memblock_type *type, {unsigned long i; -for (i =0 ; i < type->cnt; i++) { -phys_addr_t rgnbase = type->regions[i].base; -phys_addr_t rgnsize = type->regions[i].size; -if (memblock_addrs_overlap (base, size, rgnbase, rgnsize)) +for (i =0 ; i < type->cnt; i++) +if (memblock_addrs_overlap (base, size, type->regions[i].base, + type->regions[i].size))break ; - } -return i < type->cnt; }
Signature · 7 lines
2.5.0 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>