mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-02-02 04:42:58 +00:00
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
This commit is contained in:
parent
9ae3adbe3c
commit
4664e21293
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user