Skip to contentSkip to conversation

Remove unneeded pointer newdp from dccp_v4_request_recv_sock() in net/dccp/ipv4.c

PATCH Applied Micah Gruber 2 participants 2 messages Sep 5, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove unneeded pointer newdp from dccp_v4_request_recv_sock() in net/dccp/ipv4.c

This trivial patch removes the unneeded pointer newdp, which is never used.

---

net/dccp/ipv4.c +0 -2
@@ -381,7 +381,6 @@
 {
 	struct inet_request_sock *ireq;
 	struct inet_sock *newinet;
-	struct dccp_sock *newdp;
 	struct sock *newsk;
 
 	if (sk_acceptq_is_full(sk))
@@ -396,7 +395,6 @@
 
 	sk_setup_caps(newsk, dst);
 
-	newdp		   = dccp_sk(newsk);
 	newinet		   = inet_sk(newsk);
 	ireq		   = inet_rsk(req);
 	newinet->daddr	   = ireq->rmt_addr;