Skip to contentSkip to conversation

tcp: remove unnecessary tcp_sk assignment.

PATCH Applied Dave Jones 2 participants 2 messages Jun 16, 2014 – Jun 17, 2014

Subsystems (3)
lore
Share & tools
lore

Dave Jones

author
#0 lore raw

This variable is overwritten by the child socket assignment before it ever gets used.

net/ipv4/tcp_fastopen.c +1 -1
index 62e48cf84e60..9771563ab564 100644
@@ -131,7 +131,7 @@ static bool tcp_fastopen_create_child(struct sock *sk,
 				      struct dst_entry *dst,
 				      struct request_sock *req)
 {
-	struct tcp_sock *tp = tcp_sk(sk);
+	struct tcp_sock *tp;
 	struct request_sock_queue *queue = &inet_csk(sk)->icsk_accept_queue;
 	struct sock *child;