diff options
| author | John Crispin <blogic@openwrt.org> | 2013-04-25 19:03:29 +0000 |
|---|---|---|
| committer | John Crispin <blogic@openwrt.org> | 2013-04-25 19:03:29 +0000 |
| commit | d8d3d5959bc45870394899ce36dd9fa06bdf058b (patch) | |
| tree | a1ce69e78306d50c3edb97f2683c4de21466025d /target/linux/generic/files/drivers | |
| parent | f8a2ed97dff759a9b6b9519e207816895d8d06d0 (diff) | |
| download | upstream-d8d3d5959bc45870394899ce36dd9fa06bdf058b.tar.gz upstream-d8d3d5959bc45870394899ce36dd9fa06bdf058b.tar.bz2 upstream-d8d3d5959bc45870394899ce36dd9fa06bdf058b.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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36442 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/files/drivers')
| -rw-r--r-- | target/linux/generic/files/drivers/net/phy/rtl8366_smi.c | 2 |
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 d433908131f..e2b4f02efaa 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))) |
