mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 08:00:52 +07:00
kcm: Remove redundant unlikely()
IS_ERR() already implies unlikely(), so it can be omitted. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
63a4e80be4
commit
d9db5e3680
@ -1650,7 +1650,7 @@ static int kcm_clone(struct socket *osock, struct kcm_clone *info,
|
||||
}
|
||||
|
||||
newfile = sock_alloc_file(newsock, 0, osock->sk->sk_prot_creator->name);
|
||||
if (unlikely(IS_ERR(newfile))) {
|
||||
if (IS_ERR(newfile)) {
|
||||
err = PTR_ERR(newfile);
|
||||
goto out_sock_alloc_fail;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user