dccp: newdp is declared/assigned but never be used
authorHagen Paul Pfeifer <hagen@jauu.net>
Fri, 25 Feb 2011 05:45:16 +0000 (05:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Feb 2011 22:00:21 +0000 (14:00 -0800)
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>
net/dccp/ipv6.c

index dca711df9b60cea9e8ecf259cfdfc3909c60d3bb..460d545a650996d691df0189a1132f7e85ccbee8 100644 (file)
@@ -484,7 +484,6 @@ static struct sock *dccp_v6_request_recv_sock(struct sock *sk,
        struct inet6_request_sock *ireq6 = inet6_rsk(req);
        struct ipv6_pinfo *newnp, *np = inet6_sk(sk);
        struct inet_sock *newinet;
-       struct dccp_sock *newdp;
        struct dccp6_sock *newdp6;
        struct sock *newsk;
        struct ipv6_txoptions *opt;
@@ -498,7 +497,6 @@ static struct sock *dccp_v6_request_recv_sock(struct sock *sk,
                        return NULL;
 
                newdp6 = (struct dccp6_sock *)newsk;
-               newdp = dccp_sk(newsk);
                newinet = inet_sk(newsk);
                newinet->pinet6 = &newdp6->inet6;
                newnp = inet6_sk(newsk);
@@ -578,7 +576,6 @@ static struct sock *dccp_v6_request_recv_sock(struct sock *sk,
        newdp6 = (struct dccp6_sock *)newsk;
        newinet = inet_sk(newsk);
        newinet->pinet6 = &newdp6->inet6;
-       newdp = dccp_sk(newsk);
        newnp = inet6_sk(newsk);
 
        memcpy(newnp, np, sizeof(struct ipv6_pinfo));