diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2017-09-26 11:22:58 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-26 09:54:06 -0700 |
commit | d9db5e3680c87fdbdf86fcb1c42caea4bf98680c (patch) | |
tree | 7e04731e00b21d385ea0500233e9166eb8a599a3 | |
parent | 63a4e80be4f523dbde6412decfa8244ff73cc4b9 (diff) | |
download | linux-d9db5e3680c87fdbdf86fcb1c42caea4bf98680c.tar.bz2 |
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>
-rw-r--r-- | net/kcm/kcmsock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/kcm/kcmsock.c b/net/kcm/kcmsock.c index af4e76ac88ff..0b750a22c4b9 100644 --- a/net/kcm/kcmsock.c +++ b/net/kcm/kcmsock.c @@ -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; } |