OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f4cf93
)
datagram: Remove redundant unlikely()
author
Tobias Klauser
<tklauser@distanz.ch>
Tue, 26 Sep 2017 09:21:42 +0000
(11:21 +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/core/datagram.c
patch
|
blob
|
history
diff --git
a/net/core/datagram.c
b/net/core/datagram.c
index
f7fb7e3
..
0b7b4c2
100644
(file)
--- a/
net/core/datagram.c
+++ b/
net/core/datagram.c
@@
-188,7
+188,7
@@
struct sk_buff *__skb_try_recv_from_queue(struct sock *sk,
}
if (!skb->len) {
skb = skb_set_peeked(skb);
- if (
unlikely(IS_ERR(skb)
)) {
+ if (
IS_ERR(skb
)) {
*err = PTR_ERR(skb);
return NULL;
}