aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorBreno Leitao <leitao@debian.org>2025-03-19 10:02:44 -0700
committerJakub Kicinski <kuba@kernel.org>2025-03-24 13:42:53 -0700
commitf1fce08e63fe1a2a8b8106b93b7244a39830edae (patch)
treec6187c751bb9f4cebb1261638f83642119e331dd
parentnet: stmmac: Call xpcs_config_eee_mult_fact() only when xpcs is present (diff)
downloadwireguard-linux-f1fce08e63fe1a2a8b8106b93b7244a39830edae.tar.xz
wireguard-linux-f1fce08e63fe1a2a8b8106b93b7244a39830edae.zip
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>
-rw-r--r--net/core/netpoll.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/core/netpoll.c b/net/core/netpoll.c
index 7bc75a4ef5d2..4ddb7490df4b 100644
--- a/net/core/netpoll.c
+++ b/net/core/netpoll.c
@@ -433,7 +433,6 @@ int netpoll_send_udp(struct netpoll *np, const char *msg, int len)
udph->len = htons(udp_len);
if (np->ipv6) {
- udph->check = 0;
udph->check = csum_ipv6_magic(&np->local_ip.in6,
&np->remote_ip.in6,
udp_len, IPPROTO_UDP,