]> err.no Git - linux-2.6/commitdiff
[IPV6]: Fix a branch prediction
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Wed, 20 Apr 2005 05:27:09 +0000 (22:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Apr 2005 05:27:09 +0000 (22:27 -0700)
From: Tushar Gohad <tgohad@mvista.com>

Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c

index 5ffde14ddc09547085f02646e4399053429f3cbd..7196ac2f2d1688d410e2f51973f90c0118549c63 100644 (file)
@@ -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);