diff options
author | Alexander Kuleshov <kuleshovmail@gmail.com> | 2016-01-14 15:20:39 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-01-14 16:00:49 -0800 |
commit | f14516fbf0f6bec7d98c1cb5b5c73ccd2bb4a5e9 (patch) | |
tree | aea40344154375ef9f7df8842108ed8c9dbbd0a7 /mm/memblock.c | |
parent | 5020e285856cb406224e6f977fd893a006077806 (diff) | |
download | blackbird-op-linux-f14516fbf0f6bec7d98c1cb5b5c73ccd2bb4a5e9.tar.gz blackbird-op-linux-f14516fbf0f6bec7d98c1cb5b5c73ccd2bb4a5e9.zip |
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: Alexander Kuleshov <kuleshovmail@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memblock.c')
-rw-r--r-- | mm/memblock.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/mm/memblock.c b/mm/memblock.c index 9695398a14c0..c33a2a2ae69f 100644 --- a/mm/memblock.c +++ b/mm/memblock.c @@ -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; } |