mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-30 19:06:14 +00:00
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
2 changed files with 2 additions and 2 deletions
|
@ -178,7 +178,7 @@ struct sock *inet6_lookup_listener(struct net *net,
|
||||||
saddr, sport, &in6addr_any, hnum,
|
saddr, sport, &in6addr_any, hnum,
|
||||||
dif, sdif);
|
dif, sdif);
|
||||||
done:
|
done:
|
||||||
if (unlikely(IS_ERR(result)))
|
if (IS_ERR(result))
|
||||||
return NULL;
|
return NULL;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
@ -219,7 +219,7 @@ struct sock *__udp6_lib_lookup(struct net *net,
|
||||||
exact_dif, hslot2,
|
exact_dif, hslot2,
|
||||||
skb);
|
skb);
|
||||||
}
|
}
|
||||||
if (unlikely(IS_ERR(result)))
|
if (IS_ERR(result))
|
||||||
return NULL;
|
return NULL;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue