aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/inet_connection_sock.c4
-rw-r--r--net/ipv4/tcp_fastopen.c4
2 files changed, 0 insertions, 8 deletions
diff --git a/net/ipv4/inet_connection_sock.c b/net/ipv4/inet_connection_sock.c
index 13ec7c3a9c49..7fd6db3fe366 100644
--- a/net/ipv4/inet_connection_sock.c
+++ b/net/ipv4/inet_connection_sock.c
@@ -752,10 +752,6 @@ drop:
752static void reqsk_queue_hash_req(struct request_sock *req, 752static void reqsk_queue_hash_req(struct request_sock *req,
753 unsigned long timeout) 753 unsigned long timeout)
754{ 754{
755 req->num_retrans = 0;
756 req->num_timeout = 0;
757 req->sk = NULL;
758
759 timer_setup(&req->rsk_timer, reqsk_timer_handler, TIMER_PINNED); 755 timer_setup(&req->rsk_timer, reqsk_timer_handler, TIMER_PINNED);
760 mod_timer(&req->rsk_timer, jiffies + timeout); 756 mod_timer(&req->rsk_timer, jiffies + timeout);
761 757
diff --git a/net/ipv4/tcp_fastopen.c b/net/ipv4/tcp_fastopen.c
index 018a48477355..f5a45e1e1182 100644
--- a/net/ipv4/tcp_fastopen.c
+++ b/net/ipv4/tcp_fastopen.c
@@ -221,10 +221,6 @@ static struct sock *tcp_fastopen_create_child(struct sock *sk,
221 struct sock *child; 221 struct sock *child;
222 bool own_req; 222 bool own_req;
223 223
224 req->num_retrans = 0;
225 req->num_timeout = 0;
226 req->sk = NULL;
227
228 child = inet_csk(sk)->icsk_af_ops->syn_recv_sock(sk, skb, req, NULL, 224 child = inet_csk(sk)->icsk_af_ops->syn_recv_sock(sk, skb, req, NULL,
229 NULL, &own_req); 225 NULL, &own_req);
230 if (!child) 226 if (!child)