[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1604644960-48378-3-git-send-email-dong.menglong@zte.com.cn>
Date: Fri, 6 Nov 2020 01:42:39 -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: udp: remove redundant initialization in udp_gro_complete
From: Menglong Dong <dong.menglong@....com.cn>
The initialization for 'err' with '-ENOSYS' is redundant and
can be removed, as it is updated soon and not used.
Signed-off-by: Menglong Dong <dong.menglong@....com.cn>
---
net/ipv4/udp_offload.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/ipv4/udp_offload.c b/net/ipv4/udp_offload.c
index b8b1fde..65860f8 100644
--- a/net/ipv4/udp_offload.c
+++ b/net/ipv4/udp_offload.c
@@ -554,7 +554,7 @@ int udp_gro_complete(struct sk_buff *skb, int nhoff,
{
__be16 newlen = htons(skb->len - nhoff);
struct udphdr *uh = (struct udphdr *)(skb->data + nhoff);
- int err = -ENOSYS;
+ int err;
struct sock *sk;
uh->len = newlen;
--
2.7.4
Powered by blists - more mailing lists