From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753866AbcDOJB2 (ORCPT ); Fri, 15 Apr 2016 05:01:28 -0400 Received: from outbound-smtp02.blacknight.com ([81.17.249.8]:36154 "EHLO outbound-smtp02.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751721AbcDOJBZ (ORCPT ); Fri, 15 Apr 2016 05:01:25 -0400 From: Mel Gorman To: Andrew Morton Cc: Vlastimil Babka , Jesper Dangaard Brouer , Linux-MM , LKML , Mel Gorman Subject: [PATCH 11/28] mm, page_alloc: Remove unnecessary initialisation in get_page_from_freelist Date: Fri, 15 Apr 2016 09:59:03 +0100 Message-Id: <1460710760-32601-12-git-send-email-mgorman@techsingularity.net> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1460710760-32601-1-git-send-email-mgorman@techsingularity.net> References: <1460710760-32601-1-git-send-email-mgorman@techsingularity.net> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org See subject. Signed-off-by: Mel Gorman --- mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 313db1c43839..f5ddb342c967 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -2674,7 +2674,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; @@ -2688,6 +2687,7 @@ get_page_from_freelist(gfp_t gfp_mask, unsigned int order, int alloc_flags, */ for_each_zone_zonelist_nodemask(zone, z, ac->zonelist, ac->high_zoneidx, ac->nodemask) { + struct page *page; unsigned long mark; if (cpusets_enabled() && -- 2.6.4 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f72.google.com (mail-lf0-f72.google.com [209.85.215.72]) by kanga.kvack.org (Postfix) with ESMTP id D8CA96B0267 for ; Fri, 15 Apr 2016 05:01:24 -0400 (EDT) Received: by mail-lf0-f72.google.com with SMTP id l15so63905079lfg.2 for ; Fri, 15 Apr 2016 02:01:24 -0700 (PDT) Received: from outbound-smtp06.blacknight.com (outbound-smtp06.blacknight.com. [81.17.249.39]) by mx.google.com with ESMTPS id w195si39011055wmd.112.2016.04.15.02.01.23 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 15 Apr 2016 02:01:23 -0700 (PDT) Received: from mail.blacknight.com (pemlinmail06.blacknight.ie [81.17.255.152]) by outbound-smtp06.blacknight.com (Postfix) with ESMTPS id 4BF6FCECB for ; Fri, 15 Apr 2016 09:01:23 +0000 (UTC) From: Mel Gorman Subject: [PATCH 11/28] mm, page_alloc: Remove unnecessary initialisation in get_page_from_freelist Date: Fri, 15 Apr 2016 09:59:03 +0100 Message-Id: <1460710760-32601-12-git-send-email-mgorman@techsingularity.net> In-Reply-To: <1460710760-32601-1-git-send-email-mgorman@techsingularity.net> References: <1460710760-32601-1-git-send-email-mgorman@techsingularity.net> Sender: owner-linux-mm@kvack.org List-ID: To: Andrew Morton Cc: Vlastimil Babka , Jesper Dangaard Brouer , Linux-MM , LKML , Mel Gorman See subject. Signed-off-by: Mel Gorman --- mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 313db1c43839..f5ddb342c967 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -2674,7 +2674,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; @@ -2688,6 +2687,7 @@ get_page_from_freelist(gfp_t gfp_mask, unsigned int order, int alloc_flags, */ for_each_zone_zonelist_nodemask(zone, z, ac->zonelist, ac->high_zoneidx, ac->nodemask) { + struct page *page; unsigned long mark; if (cpusets_enabled() && -- 2.6.4 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org