aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/tcp.h
diff options
context:
space:
mode:
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>2007-08-25 01:43:14 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:48:27 -0400
commite9144bd8da80f3136b23c615609798e371e885ac (patch)
tree4ca84a95f2dd7f2e4d49bc8f1868bdfee3deea82 /include/net/tcp.h
parent522400623e240ad134cb4101b1fddc3245d2a7ed (diff)
[TCP]: Remove unnecessary wrapper tcp_packets_out_dec
Makes caller side more obvious, there's no need to have a wrapper for this oneliner! Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r--include/net/tcp.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index 0a4ed6e85c6f..66827177ae8b 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -626,12 +626,6 @@ static inline void tcp_packets_out_inc(struct sock *sk,
626 inet_csk(sk)->icsk_rto, TCP_RTO_MAX); 626 inet_csk(sk)->icsk_rto, TCP_RTO_MAX);
627} 627}
628 628
629static inline void tcp_packets_out_dec(struct tcp_sock *tp,
630 const struct sk_buff *skb)
631{
632 tp->packets_out -= tcp_skb_pcount(skb);
633}
634
635/* Events passed to congestion control interface */ 629/* Events passed to congestion control interface */
636enum tcp_ca_event { 630enum tcp_ca_event {
637 CA_EVENT_TX_START, /* first transmit when no packets in flight */ 631 CA_EVENT_TX_START, /* first transmit when no packets in flight */