aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2020-03-25 09:17:50 +0800
committerDavid S. Miller <davem@davemloft.net>2020-03-25 11:18:27 -0700
commitfab90c820247ca082030d5ea5205311c90c1b6e0 (patch)
tree351f683f03ceea4256af7ca1f17a5a6fcc388b5e
parentdevlink: expand the devlink-info documentation (diff)
downloadwireguard-linux-fab90c820247ca082030d5ea5205311c90c1b6e0.tar.xz
wireguard-linux-fab90c820247ca082030d5ea5205311c90c1b6e0.zip
cxgb4: remove set but not used variable 'tab'
drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c: In function cxgb4_get_free_ftid: drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c:547:23: warning: variable tab set but not used [-Wunused-but-set-variable] commit 8d174351f285 ("cxgb4: rework TC filter rule insertion across regions") involved this, remove it. Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c
index e8852dfcc1f1..4490042b5a95 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c
+++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c
@@ -544,8 +544,8 @@ int cxgb4_get_free_ftid(struct net_device *dev, u8 family, bool hash_en,
{
struct adapter *adap = netdev2adap(dev);
struct tid_info *t = &adap->tids;
- struct filter_entry *tab, *f;
u32 bmap_ftid, max_ftid;
+ struct filter_entry *f;
unsigned long *bmap;
bool found = false;
u8 i, cnt, n;
@@ -617,7 +617,6 @@ int cxgb4_get_free_ftid(struct net_device *dev, u8 family, bool hash_en,
bmap = t->hpftid_bmap;
bmap_ftid = ftid;
- tab = t->hpftid_tab;
} else if (hash_en) {
/* Ensure priority is >= last rule in HPFILTER
* region.
@@ -657,7 +656,6 @@ int cxgb4_get_free_ftid(struct net_device *dev, u8 family, bool hash_en,
bmap = t->ftid_bmap;
bmap_ftid = ftid - t->nhpftids;
- tab = t->ftid_tab;
}
cnt = 0;