]> 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)
commit1e02a2be0437e37ea1d2d3cc4a55a5dd7610d12e
treea12ca38ca2fbe65d554e7dc31c4fb0a2a610cdf5
parent6c53b32e44f8aeaf314dfb52f720c4eab8b2a91f
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