From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by kanga.kvack.org (Postfix) with ESMTP id 021E5828DE for ; Fri, 8 Jan 2016 03:02:29 -0500 (EST) Received: by mail-lb0-f182.google.com with SMTP id bc4so219804203lbc.2 for ; Fri, 08 Jan 2016 00:02:28 -0800 (PST) Received: from mail-lf0-x242.google.com (mail-lf0-x242.google.com. [2a00:1450:4010:c07::242]) by mx.google.com with ESMTPS id l188si22313366lfb.29.2016.01.08.00.02.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Jan 2016 00:02:27 -0800 (PST) Received: by mail-lf0-x242.google.com with SMTP id t141so1618927lfd.3 for ; Fri, 08 Jan 2016 00:02:27 -0800 (PST) From: Alexander Kuleshov Subject: [PATCH] mm/page_alloc: remove unused struct zone *z variable Date: Fri, 8 Jan 2016 13:59:08 +0600 Message-Id: <1452239948-1012-1-git-send-email-kuleshovmail@gmail.com> Sender: owner-linux-mm@kvack.org List-ID: To: Andrew Morton Cc: Mel Gorman , Michal Hocko , Vlastimil Babka , David Rientjes , Joonsoo Kim , Yaowei Bai , Xishi Qiu , Alexander Duyck , "Kirill A . Shutemov" , Johannes Weiner , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Alexander Kuleshov This patch removes unused struct zone *z variable which is appeared in 86051ca5eaf5 (mm: fix usemap initialization) Signed-off-by: Alexander Kuleshov --- mm/page_alloc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 9d666df..9bde098 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -4471,13 +4471,11 @@ void __meminit memmap_init_zone(unsigned long size, int nid, unsigned long zone, pg_data_t *pgdat = NODE_DATA(nid); unsigned long end_pfn = start_pfn + size; unsigned long pfn; - struct zone *z; unsigned long nr_initialised = 0; if (highest_memmap_pfn < end_pfn - 1) highest_memmap_pfn = end_pfn - 1; - z = &pgdat->node_zones[zone]; for (pfn = start_pfn; pfn < end_pfn; pfn++) { /* * There can be holes in boot-time mem_map[]s -- 2.6.2.485.g1bc8fea -- 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