summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2019-02-26 20:49:10 +0300
committerDavid S. Miller <davem@davemloft.net>2019-02-27 00:16:03 +0300
commita43e052beacb2c0cecd0e807590b70fc4ff99dba (patch)
treea70723a4d9b41acdb9275643c590e3dc1ce711ab /include
parent6c7b4ee7f96d77a40e474f7541c4e543a669dbde (diff)
downloadlinux-a43e052beacb2c0cecd0e807590b70fc4ff99dba.tar.xz
tcp: get rid of __tcp_add_write_queue_tail()
This helper is only used from tcp_add_write_queue_tail(), and does not make the code more readable. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/net/tcp.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index 813042c08dc5..d66ac76a33d1 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -1716,14 +1716,9 @@ static inline bool tcp_rtx_and_write_queues_empty(const struct sock *sk)
return tcp_rtx_queue_empty(sk) && tcp_write_queue_empty(sk);
}
-static inline void __tcp_add_write_queue_tail(struct sock *sk, struct sk_buff *skb)
-{
- __skb_queue_tail(&sk->sk_write_queue, skb);
-}
-
static inline void tcp_add_write_queue_tail(struct sock *sk, struct sk_buff *skb)
{
- __tcp_add_write_queue_tail(sk, skb);
+ __skb_queue_tail(&sk->sk_write_queue, skb);
/* Queue it, remembering where we must start sending. */
if (sk->sk_write_queue.next == skb)