projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53cd682
)
netpoll: Eliminate redundant assignment
author
Breno Leitao
<leitao@debian.org>
Wed, 19 Mar 2025 17:02:44 +0000
(10:02 -0700)
committer
Jakub Kicinski
<kuba@kernel.org>
Mon, 24 Mar 2025 20:42:53 +0000
(13:42 -0700)
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>
net/core/netpoll.c
patch
|
blob
|
blame
|
history
diff --git
a/net/core/netpoll.c
b/net/core/netpoll.c
index 7bc75a4ef5d2a08d3d05df040dc3f7f6de41bbc0..4ddb7490df4b88bee03673edd540c2694ae57920 100644
(file)
--- 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,