summaryrefslogtreecommitdiffstats
path: root/net/core/rtnetlink.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-04-25 12:28:14 +0100
committerDavid S. Miller <davem@davemloft.net>2020-04-27 11:14:07 -0700
commit7d3118016787b5c05da94b3bcdb96c9d6ff82c44 (patch)
tree312490d04516be1afb183076bad51491095ac51c /net/core/rtnetlink.c
parent3608a199749873edc992c74adf077c3a848121ad (diff)
downloadlinux-7d3118016787b5c05da94b3bcdb96c9d6ff82c44.tar.bz2
net: rtnetlink: remove redundant assignment to variable err
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>
Diffstat (limited to 'net/core/rtnetlink.c')
-rw-r--r--net/core/rtnetlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index d6f4f4a9e8ba..2269199c5891 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -3997,8 +3997,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))