projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c85c21a
)
ipv6: Use ipv6_addr_any()
author
David S. Miller
<davem@davemloft.net>
Thu, 26 Jan 2012 21:29:16 +0000
(16:29 -0500)
committer
David S. Miller
<davem@davemloft.net>
Thu, 26 Jan 2012 21:29:16 +0000
(16:29 -0500)
Suggested by YOSHIFUJI Hideaki.
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv6/route.c
b/net/ipv6/route.c
index 7d7f30697eadee6773272c5e68ae006b21e38511..92be12bb8d23bdfb62697b45981ce5dc3052a03b 100644
(file)
--- a/
net/ipv6/route.c
+++ b/
net/ipv6/route.c
@@
-125,8
+125,7
@@
static inline const void *choose_neigh_daddr(struct rt6_info *rt, const void *da
{
struct in6_addr *p = &rt->rt6i_gateway;
- if (p->s6_addr32[0] | p->s6_addr32[1] |
- p->s6_addr32[2] | p->s6_addr32[3])
+ if (!ipv6_addr_any(p))
return (const void *) p;
return daddr;
}