commit | a7563f342db6490e66dbf2c8a50577a72a158c9a | [log] [tgz] |
---|---|---|
author | David S. Miller <davem@davemloft.net> | Thu Jan 26 16:29:16 2012 -0500 |
committer | David S. Miller <davem@davemloft.net> | Thu Jan 26 16:29:16 2012 -0500 |
tree | 36afc21d40533c19dc7b4010320ff9b144f484c8 | |
parent | c85c21ad1fe18daf26bfe8684df974d88cec50b7 [diff] [blame] |
ipv6: Use ipv6_addr_any() Suggested by YOSHIFUJI Hideaki. Signed-off-by: David S. Miller <davem@davemloft.net>
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 7d7f306..92be12b 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c
@@ -125,8 +125,7 @@ { 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; }