]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: bridge: remove redundant assignment
authorNigel Christian <nigel.l.christian@gmail.com>
Tue, 25 May 2021 04:05:58 +0000 (23:05 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 May 2021 22:20:27 +0000 (15:20 -0700)
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>
net/bridge/br_netlink.c

index e4e6e991313e7b1e648fb100778709af9961491c..8642e56059fb22b39682e0daeb4d9377280dcf33 100644 (file)
@@ -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: