aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2010-01-20 07:06:15 +0000
committerGabor Juhos <juhosg@openwrt.org>2010-01-20 07:06:15 +0000
commit43815d730b5dde80b7519109a3b983018fc1bc49 (patch)
tree99213dbdc0fc13f61d86ed0f56460a3b06b901a0 /target/linux/ar71xx/files
parent428f066b774c56674e57769a652d749cbfb81470 (diff)
downloadupstream-43815d730b5dde80b7519109a3b983018fc1bc49.tar.gz
upstream-43815d730b5dde80b7519109a3b983018fc1bc49.tar.bz2
upstream-43815d730b5dde80b7519109a3b983018fc1bc49.zip
rtl8366_smi: move variable initialization out from the loop
SVN-Revision: 19239
Diffstat (limited to 'target/linux/ar71xx/files')
-rw-r--r--target/linux/ar71xx/files/drivers/net/phy/rtl8366_smi.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/phy/rtl8366_smi.c b/target/linux/ar71xx/files/drivers/net/phy/rtl8366_smi.c
index a79de4e6bc..6e890b451c 100644
--- a/target/linux/ar71xx/files/drivers/net/phy/rtl8366_smi.c
+++ b/target/linux/ar71xx/files/drivers/net/phy/rtl8366_smi.c
@@ -941,12 +941,12 @@ static int rtl8366s_reset_vlan(struct rtl8366_smi *smi)
struct rtl8366s_vlanconfig vlanmc;
/* clear 16 VLAN member configuration */
+ vlanmc.vid = 0;
+ vlanmc.priority = 0;
+ vlanmc.member = 0;
+ vlanmc.untag = 0;
+ vlanmc.fid = 0;
for (i = 0; i < RTL8366_NUM_VLANS; i++) {
- vlanmc.vid = 0;
- vlanmc.priority = 0;
- vlanmc.member = 0;
- vlanmc.untag = 0;
- vlanmc.fid = 0;
if (rtl8366s_set_vlan_member_config(smi, i, &vlanmc) != 0)
return -EIO;
}