From: Theodore Dubois Date: Mon, 20 Jan 2020 22:10:53 +0000 (-0800) Subject: tcp: remove redundant assigment to snd_cwnd X-Git-Tag: v5.5~7^2~36 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bfe02b9f9476bc8784ebb0f78fa244ad15bb15ea;p=thirdparty%2Fkernel%2Flinux.git tcp: remove redundant assigment to snd_cwnd Not sure how this got in here. git blame says the second assignment was added in 3a9a57f6, but that commit also removed the first assignment. Signed-off-by: Theodore Dubois Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index d885ba868822a..04273d6aa36b6 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -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;