Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <efremov@linux.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Joe Perches <joe@perches.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Denis Efremov and committed by
David S. Miller
974ceb21 7cf92ccb

+1 -1
+1 -1
include/net/udp.h
··· 480 480 * CB fragment 481 481 */ 482 482 segs = __skb_gso_segment(skb, features, false); 483 - if (unlikely(IS_ERR_OR_NULL(segs))) { 483 + if (IS_ERR_OR_NULL(segs)) { 484 484 int segs_nr = skb_shinfo(skb)->gso_segs; 485 485 486 486 atomic_add(segs_nr, &sk->sk_drops);