]> git.baikalelectronics.ru Git - kernel.git/commit
mm/memblock.c:memblock_add_range(): if nr_new is 0 just return
authornimisolo <nimisolo@gmail.com>
Tue, 26 Jul 2016 22:24:56 +0000 (15:24 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Jul 2016 23:19:19 +0000 (16:19 -0700)
commitd6ff4c39bd67038aae0b96850794c6ace77f75b6
tree329abdce8dd6bc2b90cb14b35017d95ae6f8871c
parent3abbd4609734f8c1f4c4fc7e020eaca87396ce71
mm/memblock.c:memblock_add_range(): if nr_new is 0 just return

If nr_new is 0 which means there's no region would be added, so just
return to the caller.

Signed-off-by: nimisolo <nimisolo@gmail.com>
Cc: Alexander Kuleshov <kuleshovmail@gmail.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: Tang Chen <tangchen@cn.fujitsu.com>
Cc: Wei Yang <weiyang@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memblock.c