mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-11 20:50:15 +02:00
rtl8366_smi: fix error checking in rtl8366s_set_vlan_4k_entry
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19242 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
f3d96d2a1e
commit
01b8553904
@ -671,16 +671,16 @@ static int rtl8366s_set_vlan_4k_entry(struct rtl8366_smi *smi,
|
||||
|
||||
data = *tableaddr;
|
||||
|
||||
rtl8366_smi_write_reg(smi, RTL8366S_VLAN_TABLE_WRITE_BASE + 1, data);
|
||||
|
||||
err = rtl8366_smi_write_reg(smi, RTL8366S_VLAN_TABLE_WRITE_BASE + 1,
|
||||
data);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
/* write table access control word */
|
||||
err = rtl8366_smi_write_reg(smi, RTL8366S_TABLE_ACCESS_CTRL_REG,
|
||||
RTL8366S_TABLE_VLAN_WRITE_CTRL);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
return 0;
|
||||
return err;
|
||||
}
|
||||
|
||||
static int rtl8366s_get_vlan_member_config(struct rtl8366_smi *smi, u32 index,
|
||||
|
Loading…
Reference in New Issue
Block a user