Skip to content

Commit d9db5e3

Browse files
tklauserdavem330
authored andcommitted
kcm: Remove redundant unlikely()
IS_ERR() already implies unlikely(), so it can be omitted. Signed-off-by: Tobias Klauser <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 63a4e80 commit d9db5e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/kcm/kcmsock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1650,7 +1650,7 @@ static int kcm_clone(struct socket *osock, struct kcm_clone *info,
16501650
}
16511651

16521652
newfile = sock_alloc_file(newsock, 0, osock->sk->sk_prot_creator->name);
1653-
if (unlikely(IS_ERR(newfile))) {
1653+
if (IS_ERR(newfile)) {
16541654
err = PTR_ERR(newfile);
16551655
goto out_sock_alloc_fail;
16561656
}

0 commit comments

Comments
 (0)