net: remove ipv6_addr_copy()
C assignment can handle struct in6_addr copying. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
40ba84993d
commit
4e3fd7a06d
@@ -60,8 +60,8 @@ void dccp_time_wait(struct sock *sk, int state, int timeo)
|
||||
|
||||
tw->tw_ipv6_offset = inet6_tw_offset(sk->sk_prot);
|
||||
tw6 = inet6_twsk((struct sock *)tw);
|
||||
ipv6_addr_copy(&tw6->tw_v6_daddr, &np->daddr);
|
||||
ipv6_addr_copy(&tw6->tw_v6_rcv_saddr, &np->rcv_saddr);
|
||||
tw6->tw_v6_daddr = np->daddr;
|
||||
tw6->tw_v6_rcv_saddr = np->rcv_saddr;
|
||||
tw->tw_ipv6only = np->ipv6only;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user