Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Breno Leitao and committed by
Jakub Kicinski
f1fce08e 53cd6820

-1
-1
net/core/netpoll.c
··· 433 433 udph->len = htons(udp_len); 434 434 435 435 if (np->ipv6) { 436 - udph->check = 0; 437 436 udph->check = csum_ipv6_magic(&np->local_ip.in6, 438 437 &np->remote_ip.in6, 439 438 udp_len, IPPROTO_UDP,