diff options
| author | Menglong Dong <[email protected]> | 2020-11-09 21:57:58 -0500 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2020-11-12 14:46:00 -0800 |
| commit | cef211968c2dad7d6bc9ee136c16272eb18b5632 (patch) | |
| tree | ee81e495d547677fcbe87c493ef8daf0e2e95392 | |
| parent | 8fc72cb541e7fef8bf2b0724ee965f34d6418832 (diff) | |
net: udp: remove redundant initialization in udp_gro_complete
The initialization for 'err' with '-ENOSYS' is redundant and
can be removed, as it is updated soon and not used.
Changes since v1:
- Move the err declaration below struct sock *sk
Signed-off-by: Menglong Dong <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
| -rw-r--r-- | net/ipv4/udp_offload.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/udp_offload.c b/net/ipv4/udp_offload.c index b8b1fdeb5af9..54c9533c3acc 100644 --- a/net/ipv4/udp_offload.c +++ b/net/ipv4/udp_offload.c @@ -554,8 +554,8 @@ 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; struct sock *sk; + int err; uh->len = newlen; |