Commit d63f8877 authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller

net: dsa: sja1105: remove redundant re-assignment of pointer table

The pointer table is being re-assigned with a value that is never
read. The assignment is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ee80dd2e
...@@ -2163,8 +2163,6 @@ static int sja1105_build_vlan_table(struct sja1105_private *priv) ...@@ -2163,8 +2163,6 @@ static int sja1105_build_vlan_table(struct sja1105_private *priv)
if (!new_vlan) if (!new_vlan)
return -ENOMEM; return -ENOMEM;
table = &priv->static_config.tables[BLK_IDX_VLAN_LOOKUP];
for (i = 0; i < VLAN_N_VID; i++) for (i = 0; i < VLAN_N_VID; i++)
new_vlan[i].vlanid = VLAN_N_VID; new_vlan[i].vlanid = VLAN_N_VID;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment