From: Mel Gorman Date: Fri, 20 May 2016 00:13:47 +0000 (-0700) Subject: mm, page_alloc: remove unnecessary initialisation in get_page_from_freelist X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=be06af002f6d50de10fd602ce3a6aa5d28e88d38;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mm, page_alloc: remove unnecessary initialisation in get_page_from_freelist Signed-off-by: Mel Gorman Acked-by: Vlastimil Babka Cc: Jesper Dangaard Brouer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 1d705803fc66..1096ac8f5ed1 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -2677,7 +2677,6 @@ get_page_from_freelist(gfp_t gfp_mask, unsigned int order, int alloc_flags, const struct alloc_context *ac) { struct zoneref *z; - struct page *page = NULL; struct zone *zone; bool fair_skipped; bool zonelist_rescan; @@ -2691,6 +2690,7 @@ zonelist_scan: */ for_each_zone_zonelist_nodemask(zone, z, ac->zonelist, ac->high_zoneidx, ac->nodemask) { + struct page *page; unsigned long mark; if (cpusets_enabled() &&