提交 fd92833a 编写于 作者: Y YOSHIFUJI Hideaki 提交者: David S. Miller

[IPV6]: Fix a branch prediction

From: Tushar Gohad <tgohad@mvista.com>
Signed-off-by: NHideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 c4d54110
......@@ -571,7 +571,7 @@ ipv6_add_addr(struct inet6_dev *idev, const struct in6_addr *addr, int pfxlen,
out2:
read_unlock_bh(&addrconf_lock);
if (unlikely(err == 0))
if (likely(err == 0))
notifier_call_chain(&inet6addr_chain, NETDEV_UP, ifa);
else {
kfree(ifa);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册