From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753174AbcDKIPh (ORCPT ); Mon, 11 Apr 2016 04:15:37 -0400 Received: from outbound-smtp05.blacknight.com ([81.17.249.38]:56619 "EHLO outbound-smtp05.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751954AbcDKIPf (ORCPT ); Mon, 11 Apr 2016 04:15:35 -0400 From: Mel Gorman To: Andrew Morton Cc: Vlastimil Babka , Linux-MM , LKML , Mel Gorman Subject: [PATCH 12/22] mm, page_alloc: Remove unnecessary initialisation from __alloc_pages_nodemask() Date: Mon, 11 Apr 2016 09:13:35 +0100 Message-Id: <1460362424-26369-13-git-send-email-mgorman@techsingularity.net> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1460362424-26369-1-git-send-email-mgorman@techsingularity.net> References: <1460362424-26369-1-git-send-email-mgorman@techsingularity.net> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org page is guaranteed to be set before it is read with or without the initialisation. 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 f5ddb342c967..df03ccc7f07c 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -3348,7 +3348,7 @@ __alloc_pages_nodemask(gfp_t gfp_mask, unsigned int order, struct zonelist *zonelist, nodemask_t *nodemask) { struct zoneref *preferred_zoneref; - struct page *page = NULL; + struct page *page; unsigned int cpuset_mems_cookie; unsigned int alloc_flags = ALLOC_WMARK_LOW|ALLOC_FAIR; gfp_t alloc_mask; /* The gfp_t that was actually used for allocation */ -- 2.6.4