From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f69.google.com (mail-wm0-f69.google.com [74.125.82.69]) by kanga.kvack.org (Postfix) with ESMTP id 0E4EE6B0266 for ; Fri, 15 Apr 2016 05:01:15 -0400 (EDT) Received: by mail-wm0-f69.google.com with SMTP id w143so12939692wmw.2 for ; Fri, 15 Apr 2016 02:01:15 -0700 (PDT) Received: from outbound-smtp02.blacknight.com (outbound-smtp02.blacknight.com. [81.17.249.8]) by mx.google.com with ESMTPS id mx2si49159499wjb.68.2016.04.15.02.01.13 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 15 Apr 2016 02:01:13 -0700 (PDT) Received: from mail.blacknight.com (pemlinmail06.blacknight.ie [81.17.255.152]) by outbound-smtp02.blacknight.com (Postfix) with ESMTPS id 0AB141DC297 for ; Fri, 15 Apr 2016 09:01:13 +0000 (UTC) From: Mel Gorman Subject: [PATCH 10/28] mm, page_alloc: Remove unnecessary local variable in get_page_from_freelist Date: Fri, 15 Apr 2016 09:59:02 +0100 Message-Id: <1460710760-32601-11-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 zonelist here is a copy of a struct field that is used once. Ditch it. Signed-off-by: Mel Gorman --- mm/page_alloc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index e778485a64c1..313db1c43839 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -2673,7 +2673,6 @@ static struct page * get_page_from_freelist(gfp_t gfp_mask, unsigned int order, int alloc_flags, const struct alloc_context *ac) { - struct zonelist *zonelist = ac->zonelist; struct zoneref *z; struct page *page = NULL; struct zone *zone; @@ -2687,7 +2686,7 @@ get_page_from_freelist(gfp_t gfp_mask, unsigned int order, int alloc_flags, * Scan zonelist, looking for a zone with enough free. * See also __cpuset_node_allowed() comment in kernel/cpuset.c. */ - for_each_zone_zonelist_nodemask(zone, z, zonelist, ac->high_zoneidx, + for_each_zone_zonelist_nodemask(zone, z, ac->zonelist, ac->high_zoneidx, ac->nodemask) { unsigned long mark; -- 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