Commit ccc882f0 authored by Nigel Christian's avatar Nigel Christian Committed by David S. Miller

net: bridge: remove redundant assignment

The variable br is assigned a value that is not being read after
exiting case IFLA_STATS_LINK_XSTATS_SLAVE. The assignment is
redundant and can be removed.

Addresses-Coverity ("Unused value")
Signed-off-by: default avatarNigel Christian <nigel.l.christian@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c1eaf3c0
......@@ -1644,7 +1644,6 @@ static size_t br_get_linkxstats_size(const struct net_device *dev, int attr)
p = br_port_get_rtnl(dev);
if (!p)
return 0;
br = p->br;
vg = nbp_vlan_group(p);
break;
default:
......
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