diff options
| author | Nghia Le <[email protected]> | 2021-11-04 14:37:40 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2021-11-06 02:49:40 +0000 |
| commit | 70bf363d7adb3a428773bc905011d0ff923ba747 (patch) | |
| tree | 412e66bc2c0fec63f964116e796ad18f380fbcd1 /net/ipv6/tcp_ipv6.c | |
| parent | Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf (diff) | |
| download | kernel-70bf363d7adb3a428773bc905011d0ff923ba747.tar.gz kernel-70bf363d7adb3a428773bc905011d0ff923ba747.zip | |
ipv6: remove useless assignment to newinet in tcp_v6_syn_recv_sock()
The newinet value is initialized with inet_sk() in a block code to
handle sockets for the ETH_P_IP protocol. Along this code path,
newinet is never read. Thus, assignment to newinet is needless and
can be removed.
Signed-off-by: Nghia Le <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
| -rw-r--r-- | net/ipv6/tcp_ipv6.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 2cc9b0e53ad1..551fce49841d 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c @@ -1263,7 +1263,6 @@ static struct sock *tcp_v6_syn_recv_sock(const struct sock *sk, struct sk_buff * inet_sk(newsk)->pinet6 = tcp_inet6_sk(newsk); - newinet = inet_sk(newsk); newnp = tcp_inet6_sk(newsk); newtp = tcp_sk(newsk); |
