Skip to content

Commit f1fce08

Browse files
leitaokuba-moo
authored andcommitted
netpoll: Eliminate redundant assignment
The assignment of zero to udph->check is unnecessary as it is immediately overwritten in the subsequent line. Remove the redundant assignment. Signed-off-by: Breno Leitao <leitao@debian.org> Reviewed-by: Joe Damato <jdamato@fastly.com> Link: https://patch.msgid.link/20250319-netpoll_nit-v1-1-a7faac5cbd92@debian.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 53cd682 commit f1fce08

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

net/core/netpoll.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,6 @@ int netpoll_send_udp(struct netpoll *np, const char *msg, int len)
433433
udph->len = htons(udp_len);
434434

435435
if (np->ipv6) {
436-
udph->check = 0;
437436
udph->check = csum_ipv6_magic(&np->local_ip.in6,
438437
&np->remote_ip.in6,
439438
udp_len, IPPROTO_UDP,

0 commit comments

Comments
 (0)