Skip to content

Commit

Permalink
[DCCP]: Remove unneeded pointer newdp from dccp_v4_request_recv_sock()
Browse files Browse the repository at this point in the history
This trivial patch removes the unneeded pointer newdp, which is never used.

Signed-off-by: Micah Gruber <micah.gruber@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Micah Gruber authored and David S. Miller committed Oct 10, 2007
1 parent 1dfcae7 commit c726187
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/dccp/ipv4.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,6 @@ struct sock *dccp_v4_request_recv_sock(struct sock *sk, struct sk_buff *skb,
{
struct inet_request_sock *ireq;
struct inet_sock *newinet;
struct dccp_sock *newdp;
struct sock *newsk;

if (sk_acceptq_is_full(sk))
Expand All @@ -396,7 +395,6 @@ struct sock *dccp_v4_request_recv_sock(struct sock *sk, struct sk_buff *skb,

sk_setup_caps(newsk, dst);

newdp = dccp_sk(newsk);
newinet = inet_sk(newsk);
ireq = inet_rsk(req);
newinet->daddr = ireq->rmt_addr;
Expand Down

0 comments on commit c726187

Please sign in to comment.