Commit 4381ca3c23b07ba5b567f72325003020ddca0341

Authored by Al Viro
Committed by Linus Torvalds
1 parent 5f17c70fe6

fix return type of skb_checksum_complete()

It returns __sum16, not unsigned int

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

include/linux/skbuff.h
... ... @@ -1639,7 +1639,7 @@
1639 1639 * if skb->ip_summed is CHECKSUM_UNNECESSARY which indicates that the
1640 1640 * hardware has already verified the correctness of the checksum.
1641 1641 */
1642   -static inline unsigned int skb_checksum_complete(struct sk_buff *skb)
  1642 +static inline __sum16 skb_checksum_complete(struct sk_buff *skb)
1643 1643 {
1644 1644 return skb_csum_unnecessary(skb) ?
1645 1645 0 : __skb_checksum_complete(skb);