csum: eliminate sparse warning in remcsum_unadjust()
Cast second parameter of csum_sub() from __sum16 to __wsum. Signed-off-by: Lance Richardson <lrichard@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8d00e20221
commit
22fbece133
|
@ -179,7 +179,7 @@ static inline __wsum remcsum_adjust(void *ptr, __wsum csum,
|
||||||
|
|
||||||
static inline void remcsum_unadjust(__sum16 *psum, __wsum delta)
|
static inline void remcsum_unadjust(__sum16 *psum, __wsum delta)
|
||||||
{
|
{
|
||||||
*psum = csum_fold(csum_sub(delta, *psum));
|
*psum = csum_fold(csum_sub(delta, (__force __wsum)*psum));
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue