]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
fix return type of skb_checksum_complete()
authorAl Viro <viro@ftp.linux.org.uk>
Sun, 15 Jul 2007 20:00:11 +0000 (21:00 +0100)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 15 Jul 2007 23:40:51 +0000 (16:40 -0700)
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>
include/linux/skbuff.h

index 9391e4a4c3447d53b73dba487255cab67ef24b6e..ce256438e6197e5557ef53edd9997594763e82d5 100644 (file)
@@ -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);