]> git.baikalelectronics.ru Git - kernel.git/commitdiff
tcp: remove redundant assigment to snd_cwnd
authorTheodore Dubois <tblodt@icloud.com>
Mon, 20 Jan 2020 22:10:53 +0000 (14:10 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jan 2020 09:52:29 +0000 (10:52 +0100)
Not sure how this got in here. git blame says the second assignment was
added in 64ebefd3, but that commit also removed the first assignment.

Signed-off-by: Theodore Dubois <tblodt@icloud.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c

index d885ba868822a32b55c4dcf730b5e57282373792..04273d6aa36b6c59571884b97dc1c0b0d0425dd4 100644 (file)
@@ -2614,7 +2614,6 @@ int tcp_disconnect(struct sock *sk, int flags)
        WRITE_ONCE(tp->write_seq, seq);
 
        icsk->icsk_backoff = 0;
-       tp->snd_cwnd = 2;
        icsk->icsk_probes_out = 0;
        icsk->icsk_rto = TCP_TIMEOUT_INIT;
        tp->snd_ssthresh = TCP_INFINITE_SSTHRESH;