From: YOSHIFUJI Hideaki Date: Wed, 20 Apr 2005 05:27:09 +0000 (-0700) Subject: [IPV6]: Fix a branch prediction X-Git-Tag: v2.6.12-rc3~9 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd92833a52b972aafacced959f4a3f7541936a9b;p=linux-2.6 [IPV6]: Fix a branch prediction From: Tushar Gohad Signed-off-by: Hideaki YOSHIFUJI Signed-off-by: David S. Miller --- diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 5ffde14ddc..7196ac2f2d 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@ -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);