diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2011-11-20 22:39:03 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-22 16:43:32 -0500 |
commit | 4e3fd7a06dc20b2d8ec6892233ad2012968fe7b6 (patch) | |
tree | da3fbec7672ac6b967dfa31cec6c88f468a57fa2 /net/sunrpc/svcsock.c | |
parent | 40ba84993d66469d336099c5af74c3da5b73e28d (diff) |
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>
Diffstat (limited to 'net/sunrpc/svcsock.c')
-rw-r--r-- | net/sunrpc/svcsock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c index 71bed1c1c77a..4653286fcc9e 100644 --- a/net/sunrpc/svcsock.c +++ b/net/sunrpc/svcsock.c | |||
@@ -157,7 +157,7 @@ static void svc_set_cmsg_data(struct svc_rqst *rqstp, struct cmsghdr *cmh) | |||
157 | cmh->cmsg_level = SOL_IPV6; | 157 | cmh->cmsg_level = SOL_IPV6; |
158 | cmh->cmsg_type = IPV6_PKTINFO; | 158 | cmh->cmsg_type = IPV6_PKTINFO; |
159 | pki->ipi6_ifindex = daddr->sin6_scope_id; | 159 | pki->ipi6_ifindex = daddr->sin6_scope_id; |
160 | ipv6_addr_copy(&pki->ipi6_addr, &daddr->sin6_addr); | 160 | pki->ipi6_addr = daddr->sin6_addr; |
161 | cmh->cmsg_len = CMSG_LEN(sizeof(*pki)); | 161 | cmh->cmsg_len = CMSG_LEN(sizeof(*pki)); |
162 | } | 162 | } |
163 | break; | 163 | break; |
@@ -523,7 +523,7 @@ static int svc_udp_get_dest_address6(struct svc_rqst *rqstp, | |||
523 | return 0; | 523 | return 0; |
524 | 524 | ||
525 | daddr->sin6_family = AF_INET6; | 525 | daddr->sin6_family = AF_INET6; |
526 | ipv6_addr_copy(&daddr->sin6_addr, &pki->ipi6_addr); | 526 | daddr->sin6_addr = pki->ipi6_addr; |
527 | daddr->sin6_scope_id = pki->ipi6_ifindex; | 527 | daddr->sin6_scope_id = pki->ipi6_ifindex; |
528 | return 1; | 528 | return 1; |
529 | } | 529 | } |