summaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorMenglong Dong <menglong8.dong@gmail.com>2020-11-08 02:05:41 +0100
committerJakub Kicinski <kuba@kernel.org>2020-11-11 00:22:05 +0100
commit30e2379e823309ee015043ffaa522cf5a0cd00b1 (patch)
tree0e8bea50549ceb58b35bb22fd47766cd9f657042 /net/ipv4
parentselftests: disable rp_filter when testing bareudp (diff)
downloadlinux-30e2379e823309ee015043ffaa522cf5a0cd00b1.tar.xz
linux-30e2379e823309ee015043ffaa522cf5a0cd00b1.zip
net: ipv4: remove redundant initialization in inet_rtm_deladdr
The initialization for 'err' with '-EINVAL' is redundant and can be removed, as it is updated soon. Changes since v1: - Remove redundant empty line Signed-off-by: Menglong Dong <dong.menglong@zte.com.cn> Link: https://lore.kernel.org/r/20201108010541.12432-1-dong.menglong@zte.com.cn Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/devinet.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv4/devinet.c b/net/ipv4/devinet.c
index 123a6d39438f..43e04382c593 100644
--- a/net/ipv4/devinet.c
+++ b/net/ipv4/devinet.c
@@ -650,8 +650,7 @@ static int inet_rtm_deladdr(struct sk_buff *skb, struct nlmsghdr *nlh,
struct in_device *in_dev;
struct ifaddrmsg *ifm;
struct in_ifaddr *ifa;
-
- int err = -EINVAL;
+ int err;
ASSERT_RTNL();