mm: use zone_end_pfn() instead of zone_start_pfn+spanned_pages
authorXishi Qiu <qiuxishi@huawei.com>
Wed, 11 Sep 2013 21:21:44 +0000 (14:21 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Sep 2013 22:57:36 +0000 (15:57 -0700)
commitc33bc315fd921b1179a1d3df5756e0da6fb73944
tree7130a2ac95c993aebb19d4a5e777f761744a06ac
parent674470d97958a0ec72f72caf7f6451da40159cc7
mm: use zone_end_pfn() instead of zone_start_pfn+spanned_pages

Use "zone_end_pfn()" instead of "zone->zone_start_pfn + zone->spanned_pages".
Simplify the code, no functional change.

[akpm@linux-foundation.org: fix build]
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>
kernel/power/snapshot.c
mm/memory_hotplug.c