diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2007-07-15 21:00:11 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-15 16:40:51 -0700 |
commit | 4381ca3c23b07ba5b567f72325003020ddca0341 (patch) | |
tree | 8364a54bbb58cd8cabbaed0d9d5a84968e56591e /include | |
parent | 5f17c70fe6d0b8562bf396f7e5638f243ebe4da8 (diff) | |
download | lwn-4381ca3c23b07ba5b567f72325003020ddca0341.tar.gz lwn-4381ca3c23b07ba5b567f72325003020ddca0341.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/skbuff.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 9391e4a4c344..ce256438e619 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); |