diff options
author | Dave Jones <davej@redhat.com> | 2014-06-16 22:30:36 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-17 06:35:00 +0200 |
commit | 17846376f21c07c1b9ddfdef1a01bf3828fc1e06 (patch) | |
tree | 751fd79fe19b504f007c3245eb1c07aeee03162a /net | |
parent | net: tile: fix unused variable warning (diff) | |
download | linux-17846376f21c07c1b9ddfdef1a01bf3828fc1e06.tar.xz linux-17846376f21c07c1b9ddfdef1a01bf3828fc1e06.zip |
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 <davej@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/tcp_fastopen.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |