Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a7563f34 authored by David S. Miller's avatar David S. Miller
Browse files

ipv6: Use ipv6_addr_any()



Suggested by YOSHIFUJI Hideaki.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c85c21ad
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;
}