All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net: ipv4: remove redundant initialization in inet_rtm_deladdr
@ 2020-11-06  6:42 menglong8.dong
  2020-11-06  6:42 ` [PATCH] net: udp: remove redundant initialization in udp_dump_one menglong8.dong
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: menglong8.dong @ 2020-11-06  6:42 UTC (permalink / raw)
  To: kuba; +Cc: davem, kuznet, yoshfuji, netdev, linux-kernel, Menglong Dong

From: Menglong Dong <dong.menglong@zte.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@zte.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


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-11-10  1:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-06  6:42 [PATCH] net: ipv4: remove redundant initialization in inet_rtm_deladdr menglong8.dong
2020-11-06  6:42 ` [PATCH] net: udp: remove redundant initialization in udp_dump_one menglong8.dong
2020-11-10  1:13   ` Jakub Kicinski
2020-11-06  6:42 ` [PATCH] net: udp: remove redundant initialization in udp_gro_complete menglong8.dong
2020-11-09 18:28   ` Jakub Kicinski
2020-11-06  6:42 ` [PATCH] net: udp: remove redundant initialization in udp_send_skb menglong8.dong
2020-11-10  1:13   ` Jakub Kicinski
2020-11-07 23:48 ` [PATCH] net: ipv4: remove redundant initialization in inet_rtm_deladdr Jakub Kicinski
2020-11-08  0:42   ` Menglong Dong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.