]> git.baikalelectronics.ru Git - kernel.git/commit
net: core: Use csum_replace_by_diff() and csum_sub() instead of opencoding
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 18 Feb 2022 08:03:48 +0000 (09:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Feb 2022 11:40:44 +0000 (11:40 +0000)
commit0f6938eb2ecc572896ef9ad11238eb2846dcaad3
tree43897186845711183df9817c3e9a40deae506a8f
parentadfb62dbda49d66eba6340324547ff89b09a66eb
net: core: Use csum_replace_by_diff() and csum_sub() instead of opencoding

Open coded calculation can be avoided and replaced by the
equivalent csum_replace_by_diff() and csum_sub().

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/utils.c