summaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp.c
diff options
context:
space:
mode:
authorTheodore Dubois <tblodt@icloud.com>2020-01-20 23:10:53 +0100
committerDavid S. Miller <davem@davemloft.net>2020-01-21 10:52:29 +0100
commitbfe02b9f9476bc8784ebb0f78fa244ad15bb15ea (patch)
treec6424156d3f3aa735f2c05e56082a430482b9ca0 /net/ipv4/tcp.c
parentnet: usb: lan78xx: Add .ndo_features_check (diff)
downloadlinux-bfe02b9f9476bc8784ebb0f78fa244ad15bb15ea.tar.xz
linux-bfe02b9f9476bc8784ebb0f78fa244ad15bb15ea.zip
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 <tblodt@icloud.com> Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r--net/ipv4/tcp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
index d885ba868822..04273d6aa36b 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;