diff options
author | Menglong Dong <dong.menglong@zte.com.cn> | 2020-11-06 07:42:38 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-11-10 01:42:49 +0100 |
commit | 6e822c2c2919a6c2031198ea9a642b75218f24bb (patch) | |
tree | 2e41911640f2adef5876116b318fd6721f725b7f /net/ipv4/udp_diag.c | |
parent | net: udp: remove redundant initialization in udp_send_skb (diff) | |
download | linux-6e822c2c2919a6c2031198ea9a642b75218f24bb.tar.xz linux-6e822c2c2919a6c2031198ea9a642b75218f24bb.zip |
net: udp: remove redundant initialization in udp_dump_one
The initialization for 'err' with '-EINVAL' is redundant and
can be removed, as it is updated soon and not used.
Signed-off-by: Menglong Dong <dong.menglong@zte.com.cn>
Link: https://lore.kernel.org/r/1604644960-48378-2-git-send-email-dong.menglong@zte.com.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv4/udp_diag.c')
-rw-r--r-- | net/ipv4/udp_diag.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/udp_diag.c b/net/ipv4/udp_diag.c index 1dbece34496e..b2cee9a307d4 100644 --- a/net/ipv4/udp_diag.c +++ b/net/ipv4/udp_diag.c @@ -30,7 +30,7 @@ static int udp_dump_one(struct udp_table *tbl, const struct inet_diag_req_v2 *req) { struct sk_buff *in_skb = cb->skb; - int err = -EINVAL; + int err; struct sock *sk = NULL; struct sk_buff *rep; struct net *net = sock_net(in_skb->sk); |