Skip to content

Commit 98e4fcf

Browse files
tklauserdavem330
authored andcommitted
datagram: 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 1f4cf93 commit 98e4fcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/core/datagram.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ struct sk_buff *__skb_try_recv_from_queue(struct sock *sk,
188188
}
189189
if (!skb->len) {
190190
skb = skb_set_peeked(skb);
191-
if (unlikely(IS_ERR(skb))) {
191+
if (IS_ERR(skb)) {
192192
*err = PTR_ERR(skb);
193193
return NULL;
194194
}

0 commit comments

Comments
 (0)