mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 13:14:07 +08:00
rco: Clean up casting errors
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>
This commit is contained in:
parent
823aeda4cf
commit
369620a09b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user