Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5792209ybi; Tue, 28 May 2019 20:19:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqxkhG5ijCXQYuC7NTHkkaETt42xI90bi4j3JT+BaaJkN/RR3tVsCADYSxRo3c01PuYyWqdP X-Received: by 2002:a17:902:3103:: with SMTP id w3mr61294409plb.187.1559099970424; Tue, 28 May 2019 20:19:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559099970; cv=none; d=google.com; s=arc-20160816; b=uVy7gCIhkNgn4kfRREYgwOV30uXzwiNa/1wfHgKCyFEhGo9TjMWE9Wy5ADdy8HdJIN soTXecuJLQqfpHXWfBbn65CEm9bxVS2DzXG+X7Ioq8llNEd4hTSu/+9BSMxjY8iHN2ei Tj/Ou4E9zqGYt55EY6Ozx229qHsTuubT1P5BSjnKZ5DgmKpx+UDmJqL88NDOgNhYMa5r kIQt0WLRw7HbvMiq9H7WSSlwzEZf263MkUJx3TmvZY6Ugvs2j02bu5Z23MIheaHNj8vZ pklPe6Y//yXIaV/Pe24dgwDSWWbnu6bdxK+j2QOZZpHZnLnTxBy/J2DEEBJvXeRoL2Zj mCJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature:ironport-phdr:dkim-signature; bh=B59HeDLnmBJtwbhJij9ITHV/Zkb7RsiodX/MnX980z8=; b=hCVfgsrtgcwyQzKm1h2uqv2Cw00hyMt/BdWRy7lj8qmqQJ+y5Z0ABHfdS6arTEX/OF DlNHKOorcuuT0vFyqoyXOtXQSCOcU7OApSd8ab16sspz1LApFRc/SW+bQQ7cL24Z6RRG QN3S8IQzOJwaSaZjKpA8HOy1CBdYZ7mJSuC1eWBmeRsMN6KdElSyzG82nAsem68wkO8H i1odTxRDUVrP4lZpRQO524KvmIp6o0YE+mTL++cFliWnYJfVjljxlxm1L3SM80v95OHl GN1eIkYX4EtJYSp2WJL2Xaa/KQsL5uPfyb9WnRND/dGoMV+v3e4XlK9LufP5EpxD+SyR dmiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cisco.com header.s=iport header.b=bmWMbHDp; dkim=pass header.i=@cisco.onmicrosoft.com header.s=selector2-cisco-onmicrosoft-com header.b=Tqd35wk0; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cisco.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u6si5186990pjx.65.2019.05.28.20.19.13; Tue, 28 May 2019 20:19:30 -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=@cisco.com header.s=iport header.b=bmWMbHDp; dkim=pass header.i=@cisco.onmicrosoft.com header.s=selector2-cisco-onmicrosoft-com header.b=Tqd35wk0; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cisco.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726341AbfE2DSE (ORCPT + 99 others); Tue, 28 May 2019 23:18:04 -0400 Received: from rcdn-iport-1.cisco.com ([173.37.86.72]:19620 "EHLO rcdn-iport-1.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725816AbfE2DSE (ORCPT ); Tue, 28 May 2019 23:18:04 -0400 X-Greylist: delayed 426 seconds by postgrey-1.27 at vger.kernel.org; Tue, 28 May 2019 23:18:04 EDT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1352; q=dns/txt; s=iport; t=1559099884; x=1560309484; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=Sdulz10sBIhnJIx8fDZdylJ9FoEjzCor9wR+V9xoFE0=; b=bmWMbHDpQre9FgsIk38rRo+BEc1kDiju4Qkk+rxhPB1UQAZG6zhEQRcQ LwMRkpirKBrNnQOkYnLxE9Kv2427oQ4RneDfzBo2PqlJEl8BS1UhHs20L SbNeA1vvEhYSdYuNUZinT6KlGVqZjqV/6YdOG34kxDxGaPfZuZYqhp5pz k=; IronPort-PHdr: =?us-ascii?q?9a23=3AzjqGjxQkDbo/uCXTgBZNRqHDmNpsv++ubAcI9p?= =?us-ascii?q?oqja5Pea2//pPkeVbS/uhpkESXBNfA8/wRje3QvuigQmEG7Zub+FE6OJ1XH1?= =?us-ascii?q?5g640NmhA4RsuMCEn1NvnvOjchF8RLWVRm13q6KkNSXs35Yg6arw=3D=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0ChAABp9+1c/4kNJK1lHAEBAQQBAQc?= =?us-ascii?q?EAQGBUwUBAQsBgT1QA4E+IAQLKIdaA48AgleXLYEuFIEQA1QJAQEBDAEBLQI?= =?us-ascii?q?BAYRAAoJjIzYHDgEDAQEEAQECAQRtHAyFSwEBBBIVGQEBNwEPAgEIGB0RMiU?= =?us-ascii?q?CBAENBSKDAIFrAx0BnhoCgTiIX4FtM4J5AQEFgQYBhAMYgg8JgTQBi1IXgUA?= =?us-ascii?q?/gREnH4IeLj6ELBiDPIImk2CUeQkCgg2TFhuWS4xwlXgCBAIEBQIOAQEFgVY?= =?us-ascii?q?LJoFXcBVlAYJBgg8MF4NNihwBNnKBKY1jAQE?= X-IronPort-AV: E=Sophos;i="5.60,525,1549929600"; d="scan'208";a="564674925" Received: from alln-core-4.cisco.com ([173.36.13.137]) by rcdn-iport-1.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 29 May 2019 03:10:57 +0000 Received: from XCH-ALN-017.cisco.com (xch-aln-017.cisco.com [173.36.7.27]) by alln-core-4.cisco.com (8.15.2/8.15.2) with ESMTPS id x4T3Avv5019255 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Wed, 29 May 2019 03:10:57 GMT Received: from xhs-aln-003.cisco.com (173.37.135.120) by XCH-ALN-017.cisco.com (173.36.7.27) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 28 May 2019 22:10:56 -0500 Received: from xhs-rcd-003.cisco.com (173.37.227.248) by xhs-aln-003.cisco.com (173.37.135.120) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 28 May 2019 22:10:56 -0500 Received: from NAM05-DM3-obe.outbound.protection.outlook.com (72.163.14.9) by xhs-rcd-003.cisco.com (173.37.227.248) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Tue, 28 May 2019 22:10:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector2-cisco-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=B59HeDLnmBJtwbhJij9ITHV/Zkb7RsiodX/MnX980z8=; b=Tqd35wk0xDYKzIlbG48ztOKMex2MD0vIRm9+YZzkCLujvZY9y00ASkDOiFiUgwRptysloaaK14XeGa0IPvuZxwhXioDkJcefkGsLKK8jXeElAODhLyw5eV4cHUS6NwndeQLVrGzjAIkrsLSze88bOEtrqhzX7XaZ3AnoOk1kRYk= Received: from BY5PR11MB4007.namprd11.prod.outlook.com (10.255.161.92) by BY5PR11MB4183.namprd11.prod.outlook.com (10.255.162.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1922.23; Wed, 29 May 2019 03:10:54 +0000 Received: from BY5PR11MB4007.namprd11.prod.outlook.com ([fe80::1de7:32f5:3a7b:ae21]) by BY5PR11MB4007.namprd11.prod.outlook.com ([fe80::1de7:32f5:3a7b:ae21%5]) with mapi id 15.20.1922.021; Wed, 29 May 2019 03:10:54 +0000 From: "Stefan Schaeckeler (sschaeck)" To: Andrew Jeffery , YueHaibing , 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' Thread-Topic: [PATCH -next] EDAC: aspeed: Remove set but not used variable 'np' Thread-Index: AQHVEwgkpwm7NMGqKUyhE4ayNBdRIKaBVTwA//+nlwA= Date: Wed, 29 May 2019 03:10:54 +0000 Message-ID: <960D5667-41E7-47F3-9C0A-726CA919B82D@cisco.com> References: <20190525144153.2028-1-yuehaibing@huawei.com> <04f103fb-54b1-4911-8164-44b20bfd1e72@www.fastmail.com> In-Reply-To: <04f103fb-54b1-4911-8164-44b20bfd1e72@www.fastmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/10.19.0.190512 authentication-results: spf=none (sender IP is ) smtp.mailfrom=sschaeck@cisco.com; x-originating-ip: [2001:420:c0c8:1002::23a] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: da4acbc0-d7fa-40d7-c0d6-08d6e3e34381 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:BY5PR11MB4183; x-ms-traffictypediagnostic: BY5PR11MB4183: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3173; x-forefront-prvs: 0052308DC6 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(396003)(39860400002)(136003)(376002)(346002)(189003)(199004)(6436002)(6246003)(6486002)(4326008)(71190400001)(71200400001)(83716004)(66476007)(99286004)(14444005)(76116006)(73956011)(66446008)(64756008)(66556008)(2501003)(229853002)(82746002)(256004)(36756003)(86362001)(305945005)(54906003)(25786009)(66946007)(6512007)(8936002)(186003)(68736007)(476003)(446003)(11346002)(6116002)(14454004)(7736002)(53936002)(5660300002)(2906002)(7416002)(486006)(81156014)(58126008)(81166006)(316002)(6506007)(102836004)(8676002)(110136005)(53546011)(76176011)(478600001)(33656002)(2616005)(46003);DIR:OUT;SFP:1101;SCL:1;SRVR:BY5PR11MB4183;H:BY5PR11MB4007.namprd11.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: cisco.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: AghqIJs59cYjUuUMuNNC5Q4ehQp8qSYJum6+gIx7AhhZQBQo7KWB3jXiBi7dIsX6BnLF1+HuS2yi7NoJdH/Bo1Z/mD321tvHvMLP7G+Hd8tElngXXNfnE3PUJR7wxKxnKwrPy6GukNZaBeOEhI9LrGXWO29Y2g2yCEXon0F329khucXeuAAnBjguh6/9wXl7PdAwG/Np7pLOAujZ21UY3COWwmT7Yepb9Ped2DgIIZ3HDhfLjv742N/RWL5//23H+E2YOl9NNcuN4tTyZlCk+jExupEjVcTUAEH9V6Xabzbjskpj7pX5D9Bvpvp2oNLZMbigBeEaoEY2+t3BRAs2Pma2H/keeMf/zegmWiQnEg8atCpRmrst5z8ZB7GhcfRLGATc4n1ynuqDb1xiMbcowSMh+HkZZCcGq3XQ6uz9jZM= Content-Type: text/plain; charset="iso-8859-1" Content-ID: <3293C5D8B6EA624CB924C20630669181@namprd11.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: da4acbc0-d7fa-40d7-c0d6-08d6e3e34381 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 May 2019 03:10:54.7573 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: sschaeck@cisco.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR11MB4183 X-OriginatorOrg: cisco.com X-Outbound-SMTP-Client: 173.36.7.27, xch-aln-017.cisco.com X-Outbound-Node: alln-core-4.cisco.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday, May 28, 2019 at 6:27 PM, Andrew Jeffery wrote: > 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 Reviewed-by: Stefan Schaeckeler > > --- > > 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 *p= dev) > > struct device *dev =3D &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 =3D dev->of_node; > > - > > res =3D platform_get_resource(pdev, IORESOURCE_MEM, 0); > > if (!res) > > return -ENOENT; > > -- > > 2.17.1