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>
This commit is contained in:
parent
9eac2d4d53
commit
20c4cb792d
|
@ -4134,7 +4134,7 @@ static void tcp_reset(struct sock *sk)
|
||||||
*
|
*
|
||||||
* If we are in FINWAIT-2, a received FIN moves us to TIME-WAIT.
|
* If we are in FINWAIT-2, a received FIN moves us to TIME-WAIT.
|
||||||
*/
|
*/
|
||||||
static void tcp_fin(struct sk_buff *skb, struct sock *sk, struct tcphdr *th)
|
static void tcp_fin(struct sock *sk)
|
||||||
{
|
{
|
||||||
struct tcp_sock *tp = tcp_sk(sk);
|
struct tcp_sock *tp = tcp_sk(sk);
|
||||||
|
|
||||||
|
@ -4405,7 +4405,7 @@ static void tcp_ofo_queue(struct sock *sk)
|
||||||
__skb_queue_tail(&sk->sk_receive_queue, skb);
|
__skb_queue_tail(&sk->sk_receive_queue, skb);
|
||||||
tp->rcv_nxt = TCP_SKB_CB(skb)->end_seq;
|
tp->rcv_nxt = TCP_SKB_CB(skb)->end_seq;
|
||||||
if (tcp_hdr(skb)->fin)
|
if (tcp_hdr(skb)->fin)
|
||||||
tcp_fin(skb, sk, tcp_hdr(skb));
|
tcp_fin(sk);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4487,7 +4487,7 @@ queue_and_out:
|
||||||
if (skb->len)
|
if (skb->len)
|
||||||
tcp_event_data_recv(sk, skb);
|
tcp_event_data_recv(sk, skb);
|
||||||
if (th->fin)
|
if (th->fin)
|
||||||
tcp_fin(skb, sk, th);
|
tcp_fin(sk);
|
||||||
|
|
||||||
if (!skb_queue_empty(&tp->out_of_order_queue)) {
|
if (!skb_queue_empty(&tp->out_of_order_queue)) {
|
||||||
tcp_ofo_queue(sk);
|
tcp_ofo_queue(sk);
|
||||||
|
|
Loading…
Reference in New Issue