From: Al Viro Date: Sun, 15 Jul 2007 20:00:11 +0000 (+0100) Subject: fix return type of skb_checksum_complete() X-Git-Tag: v2.6.23-rc1~1066 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=4381ca3c23b07ba5b567f72325003020ddca0341;p=linux-2.6-omap-h63xx.git fix return type of skb_checksum_complete() It returns __sum16, not unsigned int Signed-off-by: Al Viro Signed-off-by: Linus Torvalds --- diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 9391e4a4c34..ce256438e61 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -1639,7 +1639,7 @@ static inline int skb_csum_unnecessary(const struct sk_buff *skb) * if skb->ip_summed is CHECKSUM_UNNECESSARY which indicates that the * hardware has already verified the correctness of the checksum. */ -static inline unsigned int skb_checksum_complete(struct sk_buff *skb) +static inline __sum16 skb_checksum_complete(struct sk_buff *skb) { return skb_csum_unnecessary(skb) ? 0 : __skb_checksum_complete(skb);