From: Xishi Qiu Date: Wed, 11 Sep 2013 21:21:46 +0000 (-0700) Subject: mm: use zone_is_initialized() instead of if(zone->wait_table) X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=139c2d75b4e81d449d97f1f8188b84529eb56708;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mm: use zone_is_initialized() instead of if(zone->wait_table) Use "zone_is_initialized()" instead of "if (zone->wait_table)". Simplify the code, no functional change. Signed-off-by: Xishi Qiu Cc: Cody P Schafer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 4f5df61d6016..46b489cacdd8 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -194,7 +194,7 @@ void register_page_bootmem_info_node(struct pglist_data *pgdat) zone = &pgdat->node_zones[0]; for (; zone < pgdat->node_zones + MAX_NR_ZONES - 1; zone++) { - if (zone->wait_table) { + if (zone_is_initialized(zone)) { nr_pages = zone->wait_table_hash_nr_entries * sizeof(wait_queue_head_t); nr_pages = PAGE_ALIGN(nr_pages) >> PAGE_SHIFT;