From: John Crispin Date: Fri, 14 Nov 2014 17:06:09 +0000 (+0000) Subject: ar8216: fix "unused variable" compiler warning X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=76a54a424ca2118da632b43e79feb83b2e7f79b3;p=openwrt%2Fstaging%2Fyousong.git 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 SVN-Revision: 43273 --- diff --git a/target/linux/generic/files/drivers/net/phy/ar8216.c b/target/linux/generic/files/drivers/net/phy/ar8216.c index c7adc3d893..4410fbba50 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++) {