Commit ba61d50f authored by Hideaki Yoshifuji's avatar Hideaki Yoshifuji Committed by David S. Miller

[IPV6]: One too many ipv6_addr_type() calls in ndisc_recv_ns().

parent 680bd89d
...@@ -884,7 +884,6 @@ static void ndisc_recv_ns(struct sk_buff *skb) ...@@ -884,7 +884,6 @@ static void ndisc_recv_ns(struct sk_buff *skb)
in6_dev_put(idev); in6_dev_put(idev);
} else { } else {
struct inet6_dev *in6_dev = in6_dev_get(dev); struct inet6_dev *in6_dev = in6_dev_get(dev);
int addr_type = ipv6_addr_type(saddr);
if (in6_dev && in6_dev->cnf.forwarding && if (in6_dev && in6_dev->cnf.forwarding &&
(addr_type & IPV6_ADDR_UNICAST) && (addr_type & IPV6_ADDR_UNICAST) &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment