Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1431972ybb; Thu, 9 Apr 2020 01:55:42 -0700 (PDT) X-Google-Smtp-Source: APiQypIsEEHEOcAJZIzWVcEryq0CKOy3cHbkXvfoWZFAmKrjqPV9W5pabVpWkat1hQ+nviIRP3Cx X-Received: by 2002:a9d:1c8e:: with SMTP id l14mr9317069ota.151.1586422542124; Thu, 09 Apr 2020 01:55:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586422542; cv=none; d=google.com; s=arc-20160816; b=amxVTEruEjdEfR+wVWtMBW0Gtn9lQLQ5CE7hjocyVAclmxwwp+sXqibl4gEhRMPe4g LGV7Vw6/UtfblvPhkFQE1M3ZO9wjr/1L6Q8yFj+hiiNkgnXCUkRF+td4D89RgddgETaD Lw5i/MH40EWgf71NKcxPVWcAd+eFzNTU3cOC1dIVRGk9aLy9cM/wXsvtD8Mq3ugvrfAE 0TI+Lgs0u71SGJNoW9SOaJwulwVTfNoPtvY/C8oyM57xW0JBj0au/s9Duasaiemaovmd 9ALHE9jZ6P1J25QDt0pvoV8ul7XvtjTiAVkhi2pKfNUo4WGYIR6Po17BiE5w06NLRcay rjkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=WQ9SDePQxK1dDu0d62egNqTH6QmpJis9v03fPI/b9pA=; b=PW/QPPdFeDg0iiy1TF22LY0RNf8vtvRWRM2shbPRrRYt7arNI7Y3Z9QNAzDOVV+H/I viTtC+24a17dRB8H3ODaStvfXdcYzdGIgJxIWQIlsQUbVGU1iVn4ruz2dlU/GYOus40E OS1e6d7BO7peQHig02dPt2xWFVCgyHxroneHATwaQLIFYztHkHs/6VW3fMdPjxwTTPwf 1wIT8sxSrxKT7PeSjzW0OlA09n6cAlTUeA6pgsZx8cJ8h+O5QCH4d3WHObITdOECvRz5 Sg1iMNSeQ7FqU5n4wpAUb5IerDh30pKm3tpn26nSnUJIw5SHuYjIH/vCnCrfr6qn+45V h8uw== ARC-Authentication-Results: i=1; mx.google.com; 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 l185si3144506oif.274.2020.04.09.01.55.27; Thu, 09 Apr 2020 01:55:42 -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; 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 S1726638AbgDIIyT (ORCPT + 99 others); Thu, 9 Apr 2020 04:54:19 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:58548 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725997AbgDIIyS (ORCPT ); Thu, 9 Apr 2020 04:54:18 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 756BDA00F8B9400D6FFA; Thu, 9 Apr 2020 16:54:10 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Thu, 9 Apr 2020 16:54:04 +0800 From: Jason Yan To: , , , , , , , CC: Jason Yan Subject: [PATCH] EDAC, xgene: remove set but not used 'address' Date: Thu, 9 Apr 2020 16:52:37 +0800 Message-ID: <20200409085237.46642-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.17.2 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following gcc warning: drivers/edac/xgene_edac.c:1486:7: warning: variable ‘address’ set but not used [-Wunused-but-set-variable] u32 address; ^~~~~~~ Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/edac/xgene_edac.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/edac/xgene_edac.c b/drivers/edac/xgene_edac.c index e4a1032ba0b5..e5e0fbdeca29 100644 --- a/drivers/edac/xgene_edac.c +++ b/drivers/edac/xgene_edac.c @@ -1483,13 +1483,11 @@ static void xgene_edac_rb_report(struct edac_device_ctl_info *edac_dev) return; if (reg & STICKYERR_MASK) { bool write; - u32 address; dev_err(edac_dev->dev, "IOB bus access error(s)\n"); if (regmap_read(ctx->edac->rb_map, RBEIR, ®)) return; write = reg & WRITE_ACCESS_MASK ? 1 : 0; - address = RBERRADDR_RD(reg); if (reg & AGENT_OFFLINE_ERR_MASK) dev_err(edac_dev->dev, "IOB bus %s access to offline agent error\n", -- 2.17.2