projects
/
oweals
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44d7031
)
ar8216: fix "unused variable" compiler warning
author
John Crispin
<john@openwrt.org>
Fri, 14 Nov 2014 17:06:09 +0000
(17:06 +0000)
committer
John Crispin
<john@openwrt.org>
Fri, 14 Nov 2014 17:06:09 +0000
(17:06 +0000)
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
target/linux/generic/files/drivers/net/phy/ar8216.c
patch
|
blob
|
history
diff --git
a/target/linux/generic/files/drivers/net/phy/ar8216.c
b/target/linux/generic/files/drivers/net/phy/ar8216.c
index c7adc3d893cf0291605b798a89de9c17247299c2..4410fbba5085ac911cd3931388b5f0857f8278e2 100644
(file)
--- 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++) {