Commit fd92833a authored by YOSHIFUJI Hideaki's avatar YOSHIFUJI Hideaki Committed by David S. Miller

[IPV6]: Fix a branch prediction

From: Tushar Gohad <tgohad@mvista.com>
Signed-off-by: default avatarHideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c4d54110
...@@ -571,7 +571,7 @@ ipv6_add_addr(struct inet6_dev *idev, const struct in6_addr *addr, int pfxlen, ...@@ -571,7 +571,7 @@ ipv6_add_addr(struct inet6_dev *idev, const struct in6_addr *addr, int pfxlen,
out2: out2:
read_unlock_bh(&addrconf_lock); read_unlock_bh(&addrconf_lock);
if (unlikely(err == 0)) if (likely(err == 0))
notifier_call_chain(&inet6addr_chain, NETDEV_UP, ifa); notifier_call_chain(&inet6addr_chain, NETDEV_UP, ifa);
else { else {
kfree(ifa); kfree(ifa);
......
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