Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5713899ybi; Tue, 28 May 2019 18:28:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqwe9z4oKWcs9FXjoSdcp4sSRixdq1+qOYJPqok7r+h4dJMZ8b0sFi8pq1doMazEbUfcyR4X X-Received: by 2002:a17:90a:8982:: with SMTP id v2mr9125537pjn.136.1559093328949; Tue, 28 May 2019 18:28:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559093328; cv=none; d=google.com; s=arc-20160816; b=AQK+3/jpqyaLx4XN4IRB8EMiMh+vMpkKkTLVdXQW179TT6uu1bzS8lHZjpn1N41heh zNVySgMCLY6tuY9VJjSHGc5az4ZwyJLkSWzRNAum9x6euPJix2CQ53/tbtFNUvZyx9Gi sUsJcyptYhH1A5gKGu+ORLXutbIuw4MuIW3HJr4/jjIUjGOh4vqsWOGxIyBMAqq6CcjD VOrMopnk0fL6nmpjhAfyrCdZX7f+qx/0QPCqf8kwhkvUDP8ImmnSjcUeFGc5oDszmFzd c22yH5PTfM7l6iZVE9lDUlKGa03O6OMHul+QgYNH4eVNnJk7FzKe1tRQeOVBy8kBsoBx CYmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:cc:to:from:date:references :in-reply-to:message-id:mime-version:user-agent:dkim-signature :dkim-signature; bh=ioeB7zHzuIrWPlycdQWlBGq8mtTxytQLMO5+tIc96Og=; b=Q9YnQW9Yd72DfbfwaPVvyAEZA8gEe83A7obzD26tni54wbeBj/5oYsWHyzb/GUoYKT J8u4W2KwGz/n1x6kDTVfJiORlSKEXaqLoYW/MDRg9FqGnaJy0fc+3cIV+XmDkNmZAY03 QpfrH01Zml+KrzRcFkQNUlJNiVBUxpD92AH4Xn3b/K39ArmgW6dpafkNrn16XSvTB9Ra h+pKasifHCe5GgXh9us7svwxLHD6kw7sZhqPTPA0i3mdr8TBWvJwKPMZkKvhzyknpuXj xwvLwWUmKv9psJvolBhfohcCC4a85s7288IE9Xq9flHnntOoyOyrezYjhVylKa311NLr nijg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm2 header.b=LS3OzXUP; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=7qswdVOl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w27si25431254pgl.277.2019.05.28.18.28.33; Tue, 28 May 2019 18:28:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm2 header.b=LS3OzXUP; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=7qswdVOl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726189AbfE2B1T (ORCPT + 99 others); Tue, 28 May 2019 21:27:19 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:32827 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725828AbfE2B1T (ORCPT ); Tue, 28 May 2019 21:27:19 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 524D02203E; Tue, 28 May 2019 21:27:18 -0400 (EDT) Received: from imap2 ([10.202.2.52]) by compute4.internal (MEProxy); Tue, 28 May 2019 21:27:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm2; bh=ioeB7zHzuIrWPlycdQWlBGq8mtTxytQ LMO5+tIc96Og=; b=LS3OzXUPrbKqiJbL/pQVT1MOVVOLo0+E78YZXJwv1DpXruf Y3EncH+L0nN+izLmvqtPA83EWSEX+v2552DeODXpV1erb4L+vkGD3nVEBIBZw9sm OuR30rXhiCxmfx+LGZjtoViVbT4/FBfs6JiVkrG+iLsij2gpR+riYxtNa8qpFkc0 gamh++e/Wa9GJ3wpZobvoTlMsrCwjJ+s1YAKOnruIuS3bmIIOMb2xsBsZ4VW3lJj Y02sZb4dCrd68pIeF8BSFcutQwq3qCP/dJbmrid5p0xjuakUlkz/b2dFyF0eSqE5 jqae/CrC6u2XcaDqB2C6PX91ETJ1hQJxr82/s2g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=ioeB7z HzuIrWPlycdQWlBGq8mtTxytQLMO5+tIc96Og=; b=7qswdVOlE1f9vJrwsJhoSE jV3vZHzZk0EoBNB+HKPtenBhp5sGO19cz9qrOBv5JoICgK6IIDVBuVdyEdyreiJt 8gszj6Hpz+pCnLkUH4x1jW/nJ9gw45WZRi2du9T7OZlV44TrvlK/GSmEe8/nyHDl 40eNjgftT+ttN2I1C/NojHm6nHQAr6EturFeysDAqTT2qBeUbcN5eDbVEGWysR7X SVYCAQmVw+eRli37zjajA+2vrjW659hiWQ4ZTTuupzJSSbJT0sgQpH1/DIamN6FW 6r/4ATUBTk8RIHXda43qaUIZPK4AaxHl++sSQuKB7xMPif67R+Ehw35XlCUk28ZQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddruddviedggeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdetnhgu rhgvficulfgvfhhfvghrhidfuceorghnughrvgifsegrjhdrihgurdgruheqnecurfgrrh grmhepmhgrihhlfhhrohhmpegrnhgurhgvfiesrghjrdhiugdrrghunecuvehluhhsthgv rhfuihiivgeptd X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id C2A78E00A1; Tue, 28 May 2019 21:27:16 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.6-555-g49357e1-fmstable-20190528v2 Mime-Version: 1.0 Message-Id: <04f103fb-54b1-4911-8164-44b20bfd1e72@www.fastmail.com> In-Reply-To: <20190525144153.2028-1-yuehaibing@huawei.com> References: <20190525144153.2028-1-yuehaibing@huawei.com> Date: Wed, 29 May 2019 10:57:16 +0930 From: "Andrew Jeffery" To: YueHaibing , "Stefan M Schaeckeler" , "Borislav Petkov" , "Mauro Carvalho Chehab" , james.morse@arm.com, "Joel Stanley" Cc: linux-kernel@vger.kernel.org, linux-aspeed@lists.ozlabs.org, linux-edac@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH -next] EDAC: aspeed: Remove set but not used variable 'np' Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 26 May 2019, at 00:12, YueHaibing wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/edac/aspeed_edac.c: In function aspeed_probe: > drivers/edac/aspeed_edac.c:284:22: warning: variable np set but not > used [-Wunused-but-set-variable] > > It is never used and can be removed. > > Signed-off-by: YueHaibing Reviewed-by: Andrew Jeffery > --- > drivers/edac/aspeed_edac.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/drivers/edac/aspeed_edac.c b/drivers/edac/aspeed_edac.c > index 11833c0a5d07..5634437bb39d 100644 > --- a/drivers/edac/aspeed_edac.c > +++ b/drivers/edac/aspeed_edac.c > @@ -281,15 +281,11 @@ static int aspeed_probe(struct platform_device *pdev) > struct device *dev = &pdev->dev; > struct edac_mc_layer layers[2]; > struct mem_ctl_info *mci; > - struct device_node *np; > struct resource *res; > void __iomem *regs; > u32 reg04; > int rc; > > - /* setup regmap */ > - np = dev->of_node; > - > res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > if (!res) > return -ENOENT; > -- > 2.17.1 > > >