diff options
author | Hagen Paul Pfeifer <hagen@jauu.net> | 2011-02-25 00:45:16 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-25 17:00:21 -0500 |
commit | 3b193ade594e4f2d501d4c3a9f43d49176f03230 (patch) | |
tree | 1c3b0b333aa52f7a9e164914bdd51ae415195a60 /net/dccp | |
parent | 004971353a403d75e7d50f8b3b304272ef056248 (diff) |
dccp: newdp is declared/assigned but never be used
Declaration and assignment of newdp is removed. Usage of dccp_sk()
exhibit no side effects.
Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp')
-rw-r--r-- | net/dccp/ipv6.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/dccp/ipv6.c b/net/dccp/ipv6.c index dca711df9b60..460d545a6509 100644 --- a/net/dccp/ipv6.c +++ b/net/dccp/ipv6.c | |||
@@ -484,7 +484,6 @@ static struct sock *dccp_v6_request_recv_sock(struct sock *sk, | |||
484 | struct inet6_request_sock *ireq6 = inet6_rsk(req); | 484 | struct inet6_request_sock *ireq6 = inet6_rsk(req); |
485 | struct ipv6_pinfo *newnp, *np = inet6_sk(sk); | 485 | struct ipv6_pinfo *newnp, *np = inet6_sk(sk); |
486 | struct inet_sock *newinet; | 486 | struct inet_sock *newinet; |
487 | struct dccp_sock *newdp; | ||
488 | struct dccp6_sock *newdp6; | 487 | struct dccp6_sock *newdp6; |
489 | struct sock *newsk; | 488 | struct sock *newsk; |
490 | struct ipv6_txoptions *opt; | 489 | struct ipv6_txoptions *opt; |
@@ -498,7 +497,6 @@ static struct sock *dccp_v6_request_recv_sock(struct sock *sk, | |||
498 | return NULL; | 497 | return NULL; |
499 | 498 | ||
500 | newdp6 = (struct dccp6_sock *)newsk; | 499 | newdp6 = (struct dccp6_sock *)newsk; |
501 | newdp = dccp_sk(newsk); | ||
502 | newinet = inet_sk(newsk); | 500 | newinet = inet_sk(newsk); |
503 | newinet->pinet6 = &newdp6->inet6; | 501 | newinet->pinet6 = &newdp6->inet6; |
504 | newnp = inet6_sk(newsk); | 502 | newnp = inet6_sk(newsk); |
@@ -578,7 +576,6 @@ static struct sock *dccp_v6_request_recv_sock(struct sock *sk, | |||
578 | newdp6 = (struct dccp6_sock *)newsk; | 576 | newdp6 = (struct dccp6_sock *)newsk; |
579 | newinet = inet_sk(newsk); | 577 | newinet = inet_sk(newsk); |
580 | newinet->pinet6 = &newdp6->inet6; | 578 | newinet->pinet6 = &newdp6->inet6; |
581 | newdp = dccp_sk(newsk); | ||
582 | newnp = inet6_sk(newsk); | 579 | newnp = inet6_sk(newsk); |
583 | 580 | ||
584 | memcpy(newnp, np, sizeof(struct ipv6_pinfo)); | 581 | memcpy(newnp, np, sizeof(struct ipv6_pinfo)); |