[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1604644960-48378-1-git-send-email-dong.menglong@zte.com.cn>
Date: Fri, 6 Nov 2020 01:42:37 -0500
From: menglong8.dong@...il.com
To: kuba@...nel.org
Cc: davem@...emloft.net, kuznet@....inr.ac.ru, yoshfuji@...ux-ipv6.org,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
Menglong Dong <dong.menglong@....com.cn>
Subject: [PATCH] net: ipv4: remove redundant initialization in inet_rtm_deladdr
From: Menglong Dong <dong.menglong@....com.cn>
The initialization for 'err' with '-EINVAL' is redundant and
can be removed, as it is updated soon.
Signed-off-by: Menglong Dong <dong.menglong@....com.cn>
---
net/ipv4/devinet.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/ipv4/devinet.c b/net/ipv4/devinet.c
index 123a6d3..847cb18 100644
--- a/net/ipv4/devinet.c
+++ b/net/ipv4/devinet.c
@@ -651,7 +651,7 @@ static int inet_rtm_deladdr(struct sk_buff *skb, struct nlmsghdr *nlh,
struct ifaddrmsg *ifm;
struct in_ifaddr *ifa;
- int err = -EINVAL;
+ int err;
ASSERT_RTNL();
--
2.7.4
Powered by blists - more mailing lists