提交 369620a0 编写于 作者: T Tom Herbert 提交者: David S. Miller

rco: Clean up casting errors

Fixe a couple of cast errors found by sparse.
Signed-off-by: NTom Herbert <tom@herbertland.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册