mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-13 01:08:50 +00:00
[DCCP]: Remove unneeded pointer newdp from dccp_v4_request_recv_sock()
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>
This commit is contained in:
parent
1dfcae7765
commit
c726187225
@ -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_request_sock *ireq;
|
||||||
struct inet_sock *newinet;
|
struct inet_sock *newinet;
|
||||||
struct dccp_sock *newdp;
|
|
||||||
struct sock *newsk;
|
struct sock *newsk;
|
||||||
|
|
||||||
if (sk_acceptq_is_full(sk))
|
if (sk_acceptq_is_full(sk))
|
||||||
@ -396,7 +395,6 @@ struct sock *dccp_v4_request_recv_sock(struct sock *sk, struct sk_buff *skb,
|
|||||||
|
|
||||||
sk_setup_caps(newsk, dst);
|
sk_setup_caps(newsk, dst);
|
||||||
|
|
||||||
newdp = dccp_sk(newsk);
|
|
||||||
newinet = inet_sk(newsk);
|
newinet = inet_sk(newsk);
|
||||||
ireq = inet_rsk(req);
|
ireq = inet_rsk(req);
|
||||||
newinet->daddr = ireq->rmt_addr;
|
newinet->daddr = ireq->rmt_addr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user