Skip to content

Commit 974ceb2

Browse files
evdenisdavem330
authored andcommitted
udp: Remove unlikely() from IS_ERR*() condition
"unlikely(IS_ERR_OR_NULL(x))" is excessive. IS_ERR_OR_NULL() already uses unlikely() internally. Signed-off-by: Denis Efremov <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Joe Perches <[email protected]> Cc: Andrew Morton <[email protected]> Cc: [email protected] Signed-off-by: David S. Miller <[email protected]>
1 parent 7cf92cc commit 974ceb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/net/udp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ static inline struct sk_buff *udp_rcv_segment(struct sock *sk,
480480
* CB fragment
481481
*/
482482
segs = __skb_gso_segment(skb, features, false);
483-
if (unlikely(IS_ERR_OR_NULL(segs))) {
483+
if (IS_ERR_OR_NULL(segs)) {
484484
int segs_nr = skb_shinfo(skb)->gso_segs;
485485

486486
atomic_add(segs_nr, &sk->sk_drops);

0 commit comments

Comments
 (0)