diff options
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r-- | include/net/tcp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index af9273204cfd..07f724e02f84 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -818,7 +818,7 @@ static inline __sum16 __tcp_checksum_complete(struct sk_buff *skb) | |||
818 | 818 | ||
819 | static inline int tcp_checksum_complete(struct sk_buff *skb) | 819 | static inline int tcp_checksum_complete(struct sk_buff *skb) |
820 | { | 820 | { |
821 | return skb->ip_summed != CHECKSUM_UNNECESSARY && | 821 | return !skb_csum_unnecessary(skb) && |
822 | __tcp_checksum_complete(skb); | 822 | __tcp_checksum_complete(skb); |
823 | } | 823 | } |
824 | 824 | ||