mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 05:04:20 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
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);
|
err = PTR_ERR(newfile);
|
||||||
goto out_sock_alloc_fail;
|
goto out_sock_alloc_fail;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue