Skip to content

Commit

Permalink
tcp: Use skb_queue_is_last() instead of by-hand version.
Browse files Browse the repository at this point in the history
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Sep 23, 2008
1 parent fc7ebb2 commit d258b49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/net/tcp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d258b49

Please sign in to comment.