summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-09-23 00:34:37 -0700
committerDavid S. Miller <davem@davemloft.net>2008-09-23 00:34:37 -0700
commitd258b4914bcda9177bcc7bbd8e1a97b281b460af (patch)
tree660608fd54a6370cdfd10db6ea3ea39a01ddbd64 /include
parentfc7ebb212d3e51d1188948d975aa93dbb0f58b25 (diff)
tcp: Use skb_queue_is_last() instead of by-hand version.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/net/tcp.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index f857c3eff71..5c5327e9a55 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)
__skb_unlink(skb, &sk->sk_write_queue);
}
-static inline int tcp_skb_is_last(const struct sock *sk,
- const struct sk_buff *skb)
+static inline bool tcp_skb_is_last(const struct sock *sk,
+ const struct sk_buff *skb)
{
- return skb->next == (struct sk_buff *)&sk->sk_write_queue;
+ return skb_queue_is_last(&sk->sk_write_queue, skb);
}
static inline int tcp_write_queue_empty(struct sock *sk)