aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2013-04-25 19:03:29 +0000
committerJohn Crispin <john@openwrt.org>2013-04-25 19:03:29 +0000
commit4664e21293e6b6eff32a443f9dfc1e77289b7bd3 (patch)
tree72b9f09d3551dc02514209320a7ad5aca6f927a0 /target/linux/generic
parent9ae3adbe3c72174ef47b43f992b9c536375f70e0 (diff)
downloadupstream-4664e21293e6b6eff32a443f9dfc1e77289b7bd3.tar.gz
upstream-4664e21293e6b6eff32a443f9dfc1e77289b7bd3.tar.bz2
upstream-4664e21293e6b6eff32a443f9dfc1e77289b7bd3.zip
generic: fix rtl8366_smi compile warning
drivers/net/phy/rtl8366_smi.c: In function 'rtl8366_sw_set_vlan_ports': drivers/net/phy/rtl8366_smi.c:1125:6: warning: 'pvid' may be used uninitialized in this function [-Wuninitialized] Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 36442
Diffstat (limited to 'target/linux/generic')
-rw-r--r--target/linux/generic/files/drivers/net/phy/rtl8366_smi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c b/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c
index d433908131..e2b4f02efa 100644
--- a/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c
+++ b/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c
@@ -1109,7 +1109,7 @@ int rtl8366_sw_set_vlan_ports(struct switch_dev *dev, struct switch_val *val)
port = &val->value.ports[0];
for (i = 0; i < val->len; i++, port++) {
- int pvid;
+ int pvid = 0;
member |= BIT(port->id);
if (!(port->flags & BIT(SWITCH_PORT_FLAG_TAGGED)))