diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2017-09-26 11:21:42 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-26 09:54:06 -0700 |
commit | 98e4fcff3e755c6c3de2d4f63c080b4009a599bd (patch) | |
tree | bd6a44f81413eeea31323bbfef91a1c11ee8b964 /net/core | |
parent | 1f4cf93b133ba6596ae69cfd09b48aa7b47cca41 (diff) | |
download | op-kernel-dev-98e4fcff3e755c6c3de2d4f63c080b4009a599bd.zip op-kernel-dev-98e4fcff3e755c6c3de2d4f63c080b4009a599bd.tar.gz |
datagram: 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>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/datagram.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/datagram.c b/net/core/datagram.c index f7fb7e3..0b7b4c2 100644 --- 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; } |