forked from torvalds/linux
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: Use csum_replace_... and csum_sub() helpers instead of opencoding
In a couple places, open coded calculation can be avoided and replaced by the equivalent csum_replace4() and csum_replace_by_diff(). There's also one place where csum_sub() should be used instead of csum_add(). Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
- Loading branch information
1 parent
c8b441d
commit cec9ed7
Showing
2 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters