diff options
-rw-r--r-- | include/net/tcp.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index f857c3eff710..5c5327e9a557 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -1284,10 +1284,10 @@ static inline void tcp_unlink_write_queue(struct sk_buff *skb, struct sock *sk) | |||
1284 | __skb_unlink(skb, &sk->sk_write_queue); | 1284 | __skb_unlink(skb, &sk->sk_write_queue); |
1285 | } | 1285 | } |
1286 | 1286 | ||
1287 | static inline int tcp_skb_is_last(const struct sock *sk, | 1287 | static inline bool tcp_skb_is_last(const struct sock *sk, |
1288 | const struct sk_buff *skb) | 1288 | const struct sk_buff *skb) |
1289 | { | 1289 | { |
1290 | return skb->next == (struct sk_buff *)&sk->sk_write_queue; | 1290 | return skb_queue_is_last(&sk->sk_write_queue, skb); |
1291 | } | 1291 | } |
1292 | 1292 | ||
1293 | static inline int tcp_write_queue_empty(struct sock *sk) | 1293 | static inline int tcp_write_queue_empty(struct sock *sk) |