diff options
author | David S. Miller <davem@davemloft.net> | 2005-07-05 18:19:23 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-07-05 18:19:23 -0400 |
commit | a2e2a59c93cc8ba39caa9011c2573f429e40ccd9 (patch) | |
tree | 6eae3953758b1dd84fa42b0545dd5dfd95c65b19 /include | |
parent | 92df7b518dcb113de8bc2494e3cd275ad887f12b (diff) |
[TCP]: Fix redundant calculations of tcp_current_mss()
tcp_write_xmit() uses tcp_current_mss(), but some of it's callers,
namely __tcp_push_pending_frames(), already has this value available
already.
While we're here, fix the "cur_mss" argument to be "unsigned int"
instead of plain "unsigned".
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/tcp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index f32e7aed2c75..9416236cc395 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -850,7 +850,7 @@ extern __u32 cookie_v4_init_sequence(struct sock *sk, struct sk_buff *skb, | |||
850 | 850 | ||
851 | extern void __tcp_data_snd_check(struct sock *sk, struct sk_buff *skb); | 851 | extern void __tcp_data_snd_check(struct sock *sk, struct sk_buff *skb); |
852 | extern void __tcp_push_pending_frames(struct sock *sk, struct tcp_sock *tp, | 852 | extern void __tcp_push_pending_frames(struct sock *sk, struct tcp_sock *tp, |
853 | unsigned cur_mss, int nonagle); | 853 | unsigned int cur_mss, int nonagle); |
854 | extern int tcp_may_send_now(struct sock *sk, struct tcp_sock *tp); | 854 | extern int tcp_may_send_now(struct sock *sk, struct tcp_sock *tp); |
855 | extern int tcp_retransmit_skb(struct sock *, struct sk_buff *); | 855 | extern int tcp_retransmit_skb(struct sock *, struct sk_buff *); |
856 | extern void tcp_xmit_retransmit_queue(struct sock *); | 856 | extern void tcp_xmit_retransmit_queue(struct sock *); |