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
@@ -27,8 +27,8 @@ __xfrm6_init_tempsel(struct xfrm_selector *sel, const struct flowi *fl)
|
||||
|
||||
/* Initialize temporary selector matching only
|
||||
* to current session. */
|
||||
ipv6_addr_copy((struct in6_addr *)&sel->daddr, &fl6->daddr);
|
||||
ipv6_addr_copy((struct in6_addr *)&sel->saddr, &fl6->saddr);
|
||||
*(struct in6_addr *)&sel->daddr = fl6->daddr;
|
||||
*(struct in6_addr *)&sel->saddr = fl6->saddr;
|
||||
sel->dport = xfrm_flowi_dport(fl, &fl6->uli);
|
||||
sel->dport_mask = htons(0xffff);
|
||||
sel->sport = xfrm_flowi_sport(fl, &fl6->uli);
|
||||
|
Reference in New Issue
Block a user