net: ipv6: drop unneeded likely() call around IS_ERR()
IS_ERR() already calls unlikely(), so this extra unlikely() call around IS_ERR() is not needed. Signed-off-by: Enrico Weigelt <info@metux.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
88e235b80c
commit
26f8113cc7
@ -178,7 +178,7 @@ struct sock *inet6_lookup_listener(struct net *net,
|
||||
saddr, sport, &in6addr_any, hnum,
|
||||
dif, sdif);
|
||||
done:
|
||||
if (unlikely(IS_ERR(result)))
|
||||
if (IS_ERR(result))
|
||||
return NULL;
|
||||
return result;
|
||||
}
|
||||
|
@ -219,7 +219,7 @@ struct sock *__udp6_lib_lookup(struct net *net,
|
||||
exact_dif, hslot2,
|
||||
skb);
|
||||
}
|
||||
if (unlikely(IS_ERR(result)))
|
||||
if (IS_ERR(result))
|
||||
return NULL;
|
||||
return result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user