summaryrefslogtreecommitdiff
path: root/target/linux/generic
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-11-14 17:06:09 +0000
committerJohn Crispin <john@openwrt.org>2014-11-14 17:06:09 +0000
commit76a54a424ca2118da632b43e79feb83b2e7f79b3 (patch)
tree36d38453d9937e3fa95129cb0c4234c9e4c8a389 /target/linux/generic
parent44d703160bc3a7598335f7a30703c9a711a6e7ab (diff)
downloadmtk-20170518-76a54a424ca2118da632b43e79feb83b2e7f79b3.zip
mtk-20170518-76a54a424ca2118da632b43e79feb83b2e7f79b3.tar.gz
mtk-20170518-76a54a424ca2118da632b43e79feb83b2e7f79b3.tar.bz2
ar8216: fix "unused variable" compiler warning
Most likely a copy & paste error when deriving ar8327_sw_set_ports from ar8xxx_sw_set_ports. Remove unused variable. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> SVN-Revision: 43273
Diffstat (limited to 'target/linux/generic')
-rw-r--r--target/linux/generic/files/drivers/net/phy/ar8216.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/ar8216.c b/target/linux/generic/files/drivers/net/phy/ar8216.c
index c7adc3d..4410fbb 100644
--- a/target/linux/generic/files/drivers/net/phy/ar8216.c
+++ b/target/linux/generic/files/drivers/net/phy/ar8216.c
@@ -1957,7 +1957,7 @@ ar8327_sw_set_ports(struct switch_dev *dev, struct switch_val *val)
{
struct ar8xxx_priv *priv = swdev_to_ar8xxx(dev);
u8 *vt = &priv->vlan_table[val->port_vlan];
- int i, j;
+ int i;
*vt = 0;
for (i = 0; i < val->len; i++) {