diff options
author | Yafang Shao <laoar.shao@gmail.com> | 2018-07-14 16:36:29 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-14 11:21:40 -0700 |
commit | ff0432e5a8025df895813408325b2afdfa21f946 (patch) | |
tree | bb767ce5300e0b14e5a34f9f23ec81b0d4d3df22 /net/ipv4 | |
parent | 9cee8c4375431d5087466eacf6f8f436210e56ea (diff) | |
download | linux-ff0432e5a8025df895813408325b2afdfa21f946.tar.bz2 |
tcp: remove redundant rcv_nxt update
tcp_rcv_nxt_update() is already executed in tcp_data_queue().
This line is redundant.
See bellow,
tcp_queue_rcv
tcp_rcv_nxt_update(tcp_sk(sk), TCP_SKB_CB(skb)->end_seq);
tcp_rcv_nxt_update(tp, TCP_SKB_CB(skb)->end_seq); <<<< redundant
Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/tcp_input.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index d3b6390ecf23..fac5d03d4528 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c @@ -4695,7 +4695,6 @@ queue_and_out: } eaten = tcp_queue_rcv(sk, skb, 0, &fragstolen); - tcp_rcv_nxt_update(tp, TCP_SKB_CB(skb)->end_seq); if (skb->len) tcp_event_data_recv(sk, skb); if (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN) |