projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ccd583
)
net: ipv4: remove redundant initialization in inet_rtm_deladdr
author
Menglong Dong
<menglong8.dong@gmail.com>
Sun, 8 Nov 2020 01:05:41 +0000
(09:05 +0800)
committer
Jakub Kicinski
<kuba@kernel.org>
Tue, 10 Nov 2020 23:22:05 +0000
(15:22 -0800)
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>
net/ipv4/devinet.c
patch
|
blob
|
history
diff --git
a/net/ipv4/devinet.c
b/net/ipv4/devinet.c
index
123a6d3
..
43e0438
100644
(file)
--- 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();