projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63a4e80
)
kcm: Remove redundant unlikely()
author
Tobias Klauser
<tklauser@distanz.ch>
Tue, 26 Sep 2017 09:22:58 +0000
(11:22 +0200)
committer
David S. Miller
<davem@davemloft.net>
Tue, 26 Sep 2017 16:54:06 +0000
(09:54 -0700)
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>
net/kcm/kcmsock.c
patch
|
blob
|
history
diff --git
a/net/kcm/kcmsock.c
b/net/kcm/kcmsock.c
index af4e76ac88ff0817398d1d7460a41f0cd5fe6f30..0b750a22c4b9bf92e079fcd4a694fccf81f00a8e 100644
(file)
--- 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;
}