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
lede-17.01
John Crispin 2014-11-14 17:06:09 +00:00
parent 44d703160b
commit 76a54a424c
1 changed files with 1 additions and 1 deletions

View File

@ -1957,7 +1957,7 @@ ar8327_sw_set_ports(struct switch_dev *dev, struct switch_val *val)
{ {
struct ar8xxx_priv *priv = swdev_to_ar8xxx(dev); struct ar8xxx_priv *priv = swdev_to_ar8xxx(dev);
u8 *vt = &priv->vlan_table[val->port_vlan]; u8 *vt = &priv->vlan_table[val->port_vlan];
int i, j; int i;
*vt = 0; *vt = 0;
for (i = 0; i < val->len; i++) { for (i = 0; i < val->len; i++) {