Commit d9db5e36 authored by Tobias Klauser's avatar Tobias Klauser Committed by David S. Miller

kcm: Remove redundant unlikely()

IS_ERR() already implies unlikely(), so it can be omitted.
Signed-off-by: default avatarTobias Klauser <tklauser@distanz.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 63a4e80b
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment