mm: use zone_is_empty() instead of if(zone->spanned_pages)
authorXishi Qiu <qiuxishi@huawei.com>
Wed, 11 Sep 2013 21:21:45 +0000 (14:21 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Sep 2013 22:57:38 +0000 (15:57 -0700)
commit8080fc038e91265e1002df7cae805fc17bb772fc
tree1a42d8550e638b436a7f96ed333f0a4da6e5afcf
parentc33bc315fd921b1179a1d3df5756e0da6fb73944
mm: use zone_is_empty() instead of if(zone->spanned_pages)

Use "zone_is_empty()" instead of "if (zone->spanned_pages)".
Simplify the code, no functional change.

Signed-off-by: Xishi Qiu <qiuxishi@huawei.com>
Cc: Cody P Schafer <cody@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memory_hotplug.c
mm/page_alloc.c