]> 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)
commit9883bb6efa44a6950039197b0f01b1fd04d79958
tree43897186845711183df9817c3e9a40deae506a8f
parent433404ecb3bd47953adbcf6c8f13ed3bef965c9e
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