From: Dave Jones Date: Mon, 16 Jun 2014 20:30:36 +0000 (-0400) Subject: tcp: remove unnecessary tcp_sk assignment. X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=17846376f21c07c1b9ddfdef1a01bf3828fc1e06;p=deliverable%2Flinux.git tcp: remove unnecessary tcp_sk assignment. This variable is overwritten by the child socket assignment before it ever gets used. Signed-off-by: Dave Jones Signed-off-by: David S. Miller --- diff --git a/net/ipv4/tcp_fastopen.c b/net/ipv4/tcp_fastopen.c index 62e48cf84e60..9771563ab564 100644 --- a/net/ipv4/tcp_fastopen.c +++ b/net/ipv4/tcp_fastopen.c @@ -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;