Skip to content

Commit

Permalink
rco: Clean up casting errors
Browse files Browse the repository at this point in the history
Fixe a couple of cast errors found by sparse.

Signed-off-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Tom Herbert authored and David S. Miller committed Dec 14, 2015
1 parent 823aeda commit 369620a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/net/checksum.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ static inline __wsum remcsum_adjust(void *ptr, __wsum csum,
csum = csum_sub(csum, csum_partial(ptr, start, 0));

/* 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);

return delta;
Expand Down

0 comments on commit 369620a

Please sign in to comment.