net: dsa: sja1105: remove set but not used variables 'tx_vid' and 'rx_vid'
authorYueHaibing <yuehaibing@huawei.com>
Wed, 7 Aug 2019 13:08:56 +0000 (21:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Aug 2019 05:29:02 +0000 (22:29 -0700)
commite3e3af9aa29a2ada43d5c27b47ea320415cd5bb3
treedbb50cdb6759f7aa9c68c61b41647e093f7e11d8
parentd595b03de2cb0bdf9bcdf35ff27840cc3a37158f
net: dsa: sja1105: remove set but not used variables 'tx_vid' and 'rx_vid'

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 <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Vivien Didelot <vivien.didelot@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105_main.c