diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2021-04-30 13:40:48 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2021-06-10 11:45:23 -0400 |
commit | 2495bdcc86dc5e6b71b6785e1faa76452496c687 (patch) | |
tree | a3ae036caa4ad9933c94ce1ba1e80b09cc3694e1 /net/rxrpc | |
parent | 55ca375c5dcc7aebd89de42f00ff18f5c40d25f3 (diff) | |
download | linux-2495bdcc86dc5e6b71b6785e1faa76452496c687.tar.gz linux-2495bdcc86dc5e6b71b6785e1faa76452496c687.tar.bz2 linux-2495bdcc86dc5e6b71b6785e1faa76452496c687.zip |
iov_iter: clean csum_and_copy_...() primitives up a bit
1) kmap_atomic() is not needed here, kmap_local_page() is enough.
2) No need to make sum = csum_block_add(sum, next, off); conditional
upon next != 0 - adding 0 is a no-op as far as csum_block_add()
is concerned.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'net/rxrpc')
0 files changed, 0 insertions, 0 deletions