]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: remove redundant rcv_nxt update
authorYafang Shao <laoar.shao@gmail.com>
Sat, 14 Jul 2018 08:36:29 +0000 (16:36 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 14 Jul 2018 18:21:40 +0000 (11:21 -0700)
commit0c69bcbade9224895f697871c821b877c5b5f471
treebb767ce5300e0b14e5a34f9f23ec81b0d4d3df22
parent50f7679aca90cd9448bc5404ea9c4fabb7612b2c
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>
net/ipv4/tcp_input.c