net: bridge: remove redundant assignment
Subsystems (4)
PATCH 1/1 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 <[email protected]>
--- net/bridge/br_netlink.c | 1 - 1 file changed, 1 deletion(-)
net/bridge/br_netlink.c +0 -1
@@ -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 :
Signature · 1 line
2.31.1
This patch was applied to netdev/net-next.git (refs/heads/master):
Hello:
This patch was applied to netdev/net-next.git (refs/heads/master):
Quoted 8 lines · On Mon, 24 May 2021 23:05:58 -0500 you wrote:
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 <[email protected]>[...]
Here is the summary with links:
- net: bridge: remove redundant assignment
https://git.kernel.org/netdev/net-next/c/ccc882f0d838
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html