Commit 369620a0 authored by Tom Herbert's avatar Tom Herbert Committed by David S. Miller

rco: Clean up casting errors

Fixe a couple of cast errors found by sparse.
Signed-off-by: default avatarTom Herbert <tom@herbertland.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 823aeda4
...@@ -165,7 +165,8 @@ static inline __wsum remcsum_adjust(void *ptr, __wsum csum, ...@@ -165,7 +165,8 @@ static inline __wsum remcsum_adjust(void *ptr, __wsum csum,
csum = csum_sub(csum, csum_partial(ptr, start, 0)); csum = csum_sub(csum, csum_partial(ptr, start, 0));
/* Set derived checksum in packet */ /* Set derived checksum in packet */
delta = csum_sub(csum_fold(csum), *psum); delta = csum_sub((__force __wsum)csum_fold(csum),
(__force __wsum)*psum);
*psum = csum_fold(csum); *psum = csum_fold(csum);
return delta; return delta;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment