[IPV6]: Fix a branch prediction
From: Tushar Gohad <tgohad@mvista.com> Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c4d541106b
commit
fd92833a52
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue