Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp196009pxk; Wed, 16 Sep 2020 23:57:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyiVFbAnWzVA7QwVXDsBrEUwIEswTP7MGEOTe75TnQHLyLHoeBnAzcy2TPjAz4GjM3PC9iA X-Received: by 2002:a17:906:fb84:: with SMTP id lr4mr30655903ejb.282.1600325850259; Wed, 16 Sep 2020 23:57:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600325850; cv=none; d=google.com; s=arc-20160816; b=XkE1y8O8GuHSvpLH6dBNTk+4SENYOYrWd5Q7IjvoCA0qie3y57+Nhpybz2mxpzuhQz NG315wTvUWPeiqrutN1FcoGLrm8NlX4CU20MDjvztIPF9/4/1ucgCVVcVdR8wGWoSYDv jIFY6gpnjGw2gbFV6MOiHGlhvHucyRPhDDGHQYUTnwKY59JKlWU1jNL7+t+hrdvAL5gc VgI7Fi/l+igSqc4DgyaENdyfG19eTCu6iQiRdw4eg8U6VWy1EVqdzmJbppSLWv5+LebW pv5pw3Y2UkoXDqehWDhlNh0fxBewXgcF0WPQ4Rkfy6Umxlwt4oTJyk2uv6goiZPmZPna PlFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Q5hSz68yqw/ngkwAFteSSFzpk2l/yK5VXhWg1EwQKaA=; b=kxonobymeyt7VEvmN751YudZdozUZM7FggKRcStbQy5GHLrcrRhetGWyBijuQUDEdT sMPZeEBNvaquQJ3YthsuNy+hpxRpd8QjdSPg1s9Carr4JhsaC1Bt0qvi1J0h+K4OKi6k qJ/3bhtfJ7ZU4sMejTqYE7ZAQn6IFJaVr/z4k/q3LwGdoLac4bxqkJRo0rqgrGVHJ+y6 wU2NO9MIuDrd+C7EGVdVdm+BBLsLGpSOHKRKsBm2n15y4UsANx7TwwocSOqQO/heAI8l B/d/ZW2DcJpgyECdjVvYxTerGIERcFHIdfw+LtbaQO0UC0SzHooTLymYycdkxQ/LldOx ngzA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dt6si5509723ejb.290.2020.09.16.23.57.06; Wed, 16 Sep 2020 23:57:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726241AbgIQGzr (ORCPT + 99 others); Thu, 17 Sep 2020 02:55:47 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:58792 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726187AbgIQGzi (ORCPT ); Thu, 17 Sep 2020 02:55:38 -0400 X-Greylist: delayed 437 seconds by postgrey-1.27 at vger.kernel.org; Thu, 17 Sep 2020 02:55:36 EDT Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 3711F80CEEBCA9F8F72E; Thu, 17 Sep 2020 14:55:34 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Thu, 17 Sep 2020 14:55:25 +0800 From: Liu Shixin To: Kishon Vijay Abraham I , Lorenzo Pieralisi , Rob Herring , Bjorn Helgaas CC: , , , , "Liu Shixin" Subject: [PATCH -next] PCI: dwc: Remove set but not used variable Date: Thu, 17 Sep 2020 15:17:58 +0800 Message-ID: <20200917071758.1915565-1-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.32] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes gcc '-Wunused-but-set-variable' warning: drivers/pci/controller/dwc/pci-dra7xx.c: In function 'dra7xx_pcie_establish_link': drivers/pci/controller/dwc/pci-dra7xx.c:142:6: warning: unused variable 'exp_cap_off' [-Wunused-variable] After 3af45d34d30c ("PCI: dwc: Centralize link gen setting"), variable 'exp_cap_off' is never used. Remove it to avoid build warning. Signed-off-by: Liu Shixin --- drivers/pci/controller/dwc/pci-dra7xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pci-dra7xx.c b/drivers/pci/controller/dwc/pci-dra7xx.c index 69cd43f74260..7bac7c54b2aa 100644 --- a/drivers/pci/controller/dwc/pci-dra7xx.c +++ b/drivers/pci/controller/dwc/pci-dra7xx.c @@ -139,7 +139,7 @@ static int dra7xx_pcie_establish_link(struct dw_pcie *pci) struct dra7xx_pcie *dra7xx = to_dra7xx_pcie(pci); struct device *dev = pci->dev; u32 reg; - u32 exp_cap_off = dw_pcie_find_capability(pci, PCI_CAP_ID_EXP); + dw_pcie_find_capability(pci, PCI_CAP_ID_EXP); if (dw_pcie_link_up(pci)) { dev_err(dev, "link is already up\n"); -- 2.25.1