]> git.baikalelectronics.ru Git - kernel.git/commit
mm/memblock.c: remove unnecessary memblock_type variable
authorAlexander Kuleshov <kuleshovmail@gmail.com>
Tue, 15 Mar 2016 21:57:42 +0000 (14:57 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 15 Mar 2016 23:55:16 +0000 (16:55 -0700)
commit49d01a35daf44b81e0ad7f51b12ce02d82b3a3ba
treea12ca38ca2fbe65d554e7dc31c4fb0a2a610cdf5
parent06a55f34c151b3396f5ba3afd973a98937db3239
mm/memblock.c: remove unnecessary memblock_type variable

We define struct memblock_type *type in the memblock_add_region() and
memblock_reserve_region() functions only for passing it to the
memlock_add_range() and memblock_reserve_range() functions.  Let's
remove these variables and will pass a type directly.

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>
mm/memblock.c