diff options
| author | Colin Ian King <colin.king@canonical.com> | 2020-04-25 12:28:14 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-10-29 13:59:58 +0100 |
| commit | c49d31809af2472131640f0e3429f621fe91360c (patch) | |
| tree | 957ee8dcff9cf8eece752109436b617c7a053e1d | |
| parent | fdc821782075ad6b01512a2076fe21d510fc0e53 (diff) | |
| download | linux-c49d31809af2472131640f0e3429f621fe91360c.tar.gz linux-c49d31809af2472131640f0e3429f621fe91360c.tar.bz2 linux-c49d31809af2472131640f0e3429f621fe91360c.zip | |
net: rtnetlink: remove redundant assignment to variable err
[ Upstream commit 7d3118016787b5c05da94b3bcdb96c9d6ff82c44 ]
The variable err is being initializeed with a value that is never read
and it is being updated later with a new value. The initialization
is redundant and can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: bf29555f5bdc ("rtnetlink: Allow deleting FDB entries in user namespace")
Signed-off-by: Sasha Levin <sashal@kernel.org>
| -rw-r--r-- | net/core/rtnetlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index 2b7ad5cf8fbf..f1338734c2ee 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c @@ -3823,8 +3823,8 @@ static int rtnl_fdb_del(struct sk_buff *skb, struct nlmsghdr *nlh, struct ndmsg *ndm; struct nlattr *tb[NDA_MAX+1]; struct net_device *dev; - int err = -EINVAL; __u8 *addr; + int err; u16 vid; if (!netlink_capable(skb, CAP_NET_ADMIN)) |
