Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp5447071ybh; Wed, 7 Aug 2019 06:12:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqwrljQWWIll972k22baiCt5I4Q/9NvhZMv3mTy49nf/LCryzIqN127+e4Twd1TJllvblWwI X-Received: by 2002:a17:902:7c96:: with SMTP id y22mr8321906pll.39.1565183548965; Wed, 07 Aug 2019 06:12:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565183548; cv=none; d=google.com; s=arc-20160816; b=IaHiCqWKdgnMIPSX7Ez1iFyn3ik68D0O9Te037qXwapoCpJwpZUn5yqDBWWKF5DZxQ ObVsEbN50mklIJqBaQIQnbf9sjqvxKJHE15dMKn+ofTAn0JxQK4Hevk8Z3nze4LOc51j 6lhdFV/YwwOnOSxO7Zn8Pc0EsXtRdRJgu9e9G6BWnYV2U1vbd51sD6m3qxsPlRWZjFIq Nm4HFB6MPRHCY4HldzVVM0gqGQgVjnemBQeEs+MXnjj1RyYez10/MqTKZ2ivGeBhrPt0 +6cxRBRRW4pdGao/i1VqaVC75m31xVoGjO51zAQWYdk0E9jZ/B9qJ17fEb0vj/a13HXo txNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=9t08c0NDs7fgw4zScy96aiJuVHldWFldcv9HntePkzs=; b=w8Hv3fd7bt8IsIcGMa6oIQD217setC6GQBY3idV216V7tB0nKydLjN2cTqb7jRZLhi mObCoycXV7wI/amDXM0SSXWe+nLP93K42olzxCdNK2Jg4tB5U3AF9c5chXDf1A9Bmor1 yrshBsrmVIuZDpwnZWbJHCR8XP4h7fzZmJ6IpNh1v11pwHYSP9JeX0c01SfhewykLho0 u1SK516O3KfJFmbmdB4u0p0WcOcklMC3ToV2VI8qKL65EtekMRELOcj9lL5IM8HrVHEC wirXX1FuYfpWVyjebPU81PNXUMnqJGqoxGRM5OTZoSMxwT1KgvNhgF9lf2k+C3G6uyS3 1gTA== 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 o2si51518155pfp.113.2019.08.07.06.12.11; Wed, 07 Aug 2019 06:12:28 -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 S2388105AbfHGNJ2 (ORCPT + 99 others); Wed, 7 Aug 2019 09:09:28 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:59940 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387976AbfHGNJ2 (ORCPT ); Wed, 7 Aug 2019 09:09:28 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id A2F31EF230E704A7E5D3; Wed, 7 Aug 2019 21:09:25 +0800 (CST) Received: from localhost (10.133.213.239) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.439.0; Wed, 7 Aug 2019 21:09:16 +0800 From: YueHaibing To: , , , , CC: , , YueHaibing Subject: [PATCH net-next] net: dsa: sja1105: remove set but not used variables 'tx_vid' and 'rx_vid' Date: Wed, 7 Aug 2019 21:08:56 +0800 Message-ID: <20190807130856.60792-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.133.213.239] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/dsa/sja1105/sja1105_main.c: In function sja1105_fdb_dump: drivers/net/dsa/sja1105/sja1105_main.c:1226:14: warning: variable tx_vid set but not used [-Wunused-but-set-variable] drivers/net/dsa/sja1105/sja1105_main.c:1226:6: warning: variable rx_vid set but not used [-Wunused-but-set-variable] They are not used since commit 6d7c7d948a2e ("net: dsa: sja1105: Fix broken learning with vlan_filtering disabled") Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/net/dsa/sja1105/sja1105_main.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/net/dsa/sja1105/sja1105_main.c b/drivers/net/dsa/sja1105/sja1105_main.c index d073baf..df976b25 100644 --- a/drivers/net/dsa/sja1105/sja1105_main.c +++ b/drivers/net/dsa/sja1105/sja1105_main.c @@ -1223,12 +1223,8 @@ static int sja1105_fdb_dump(struct dsa_switch *ds, int port, { struct sja1105_private *priv = ds->priv; struct device *dev = ds->dev; - u16 rx_vid, tx_vid; int i; - rx_vid = dsa_8021q_rx_vid(ds, port); - tx_vid = dsa_8021q_tx_vid(ds, port); - for (i = 0; i < SJA1105_MAX_L2_LOOKUP_COUNT; i++) { struct sja1105_l2_lookup_entry l2_lookup = {0}; u8 macaddr[ETH_ALEN]; -- 2.7.4