aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2011-10-20 17:44:03 -0400
committerDavid S. Miller <davem@davemloft.net>2011-10-20 17:44:03 -0400
commit20c4cb792de2b5839537a99a469f4529ef1047f5 (patch)
tree6443ad496861c0c79291dcc57247e841bec5eee3 /net
parent9eac2d4d5312d2ea05c0dbba8051b868fe9961a4 (diff)
tcp: remove unused tcp_fin() parameters
tcp_fin() only needs socket pointer, we can remove skb and th params. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/tcp_input.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index e8e6d492f328..69a90b839984 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -4134,7 +4134,7 @@ static void tcp_reset(struct sock *sk)
4134 * 4134 *
4135 * If we are in FINWAIT-2, a received FIN moves us to TIME-WAIT. 4135 * If we are in FINWAIT-2, a received FIN moves us to TIME-WAIT.
4136 */ 4136 */
4137static void tcp_fin(struct sk_buff *skb, struct sock *sk, struct tcphdr *th) 4137static void tcp_fin(struct sock *sk)
4138{ 4138{
4139 struct tcp_sock *tp = tcp_sk(sk); 4139 struct tcp_sock *tp = tcp_sk(sk);
4140 4140
@@ -4405,7 +4405,7 @@ static void tcp_ofo_queue(struct sock *sk)
4405 __skb_queue_tail(&sk->sk_receive_queue, skb); 4405 __skb_queue_tail(&sk->sk_receive_queue, skb);
4406 tp->rcv_nxt = TCP_SKB_CB(skb)->end_seq; 4406 tp->rcv_nxt = TCP_SKB_CB(skb)->end_seq;
4407 if (tcp_hdr(skb)->fin) 4407 if (tcp_hdr(skb)->fin)
4408 tcp_fin(skb, sk, tcp_hdr(skb)); 4408 tcp_fin(sk);
4409 } 4409 }
4410} 4410}
4411 4411
@@ -4487,7 +4487,7 @@ queue_and_out:
4487 if (skb->len) 4487 if (skb->len)
4488 tcp_event_data_recv(sk, skb); 4488 tcp_event_data_recv(sk, skb);
4489 if (th->fin) 4489 if (th->fin)
4490 tcp_fin(skb, sk, th); 4490 tcp_fin(sk);
4491 4491
4492 if (!skb_queue_empty(&tp->out_of_order_queue)) { 4492 if (!skb_queue_empty(&tp->out_of_order_queue)) {
4493 tcp_ofo_queue(sk); 4493 tcp_ofo_queue(sk);