]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
tcp: get rid of __tcp_add_write_queue_tail()
authorEric Dumazet <edumazet@google.com>
Tue, 26 Feb 2019 17:49:10 +0000 (09:49 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Feb 2019 21:16:03 +0000 (13:16 -0800)
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>
include/net/tcp.h

index 813042c08dc5a7438279821890439b02490391d1..d66ac76a33d1298e48bb9dcef217beaedc8a7968 100644 (file)
@@ -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)