diff options
author | Nigel Christian <nigel.l.christian@gmail.com> | 2021-05-24 23:05:58 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-05-25 15:20:27 -0700 |
commit | ccc882f0d838cb45a1a78ea4e48c219887f920dc (patch) | |
tree | e9dba09569f30ba8dd8e7fd3559d90d64dae50dc /net/bridge/br_netlink.c | |
parent | c1eaf3c09c54bdc0886f8ecd6532803ab9d82454 (diff) | |
download | linux-ccc882f0d838cb45a1a78ea4e48c219887f920dc.tar.bz2 |
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: Nigel Christian <nigel.l.christian@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_netlink.c')
-rw-r--r-- | net/bridge/br_netlink.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/bridge/br_netlink.c b/net/bridge/br_netlink.c index e4e6e991313e..8642e56059fb 100644 --- a/net/bridge/br_netlink.c +++ b/net/bridge/br_netlink.c @@ -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: |