Message ID | 20200529112321.18606-1-wangli09@kuaishou.com |
---|---|
State | New |
Headers | show |
Series | net: udp: remove the redundant assignment | expand |
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index 32564b350823..54db5182c884 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c @@ -798,7 +798,6 @@ void udp_set_csum(bool nocheck, struct sk_buff *skb, } else if (skb_is_gso(skb)) { uh->check = ~udp_v4_check(len, saddr, daddr, 0); } else if (skb->ip_summed == CHECKSUM_PARTIAL) { - uh->check = 0; uh->check = udp_v4_check(len, saddr, daddr, lco_csum(skb)); if (uh->check == 0) uh->check = CSUM_MANGLED_0;
Signed-off-by: Wang Li <wangli09@kuaishou.com> --- net/ipv4/udp.c | 1 - 1 file changed, 1 deletion(-)