mirror of https://gitee.com/openkylin/linux.git
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