mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
Remove duplicated unlikely() in IS_ERR()
Some drivers have duplicated unlikely() macros. IS_ERR() already has unlikely() in itself. This patch cleans up such pointless code. Signed-off-by: Hirofumi Nakagawa <[email protected]> Acked-by: David S. Miller <[email protected]> Acked-by: Jeff Garzik <[email protected]> Cc: Paul Clements <[email protected]> Cc: Richard Purdie <[email protected]> Cc: Alessandro Zummo <[email protected]> Cc: David Brownell <[email protected]> Cc: James Bottomley <[email protected]> Cc: Michael Halcrow <[email protected]> Cc: Anton Altaparmakov <[email protected]> Cc: Al Viro <[email protected]> Cc: Carsten Otte <[email protected]> Cc: Patrick McHardy <[email protected]> Cc: Paul Mundt <[email protected]> Cc: Jaroslav Kysela <[email protected]> Cc: Takashi Iwai <[email protected]> Acked-by: Mike Frysinger <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
9a6f70bbed
commit
801678c5a3
17 changed files with 23 additions and 23 deletions
|
|
@ -1524,7 +1524,7 @@ static int dev_gso_segment(struct sk_buff *skb)
|
|||
if (!segs)
|
||||
return 0;
|
||||
|
||||
if (unlikely(IS_ERR(segs)))
|
||||
if (IS_ERR(segs))
|
||||
return PTR_ERR(segs);
|
||||
|
||||
skb->next = segs;
|
||||
|
|
|
|||
|
|
@ -1234,7 +1234,7 @@ static struct sk_buff *inet_gso_segment(struct sk_buff *skb, int features)
|
|||
segs = ops->gso_segment(skb, features);
|
||||
rcu_read_unlock();
|
||||
|
||||
if (!segs || unlikely(IS_ERR(segs)))
|
||||
if (!segs || IS_ERR(segs))
|
||||
goto out;
|
||||
|
||||
skb = segs;
|
||||
|
|
|
|||
|
|
@ -214,7 +214,7 @@ int nf_queue(struct sk_buff *skb,
|
|||
|
||||
segs = skb_gso_segment(skb, 0);
|
||||
kfree_skb(skb);
|
||||
if (unlikely(IS_ERR(segs)))
|
||||
if (IS_ERR(segs))
|
||||
return 1;
|
||||
|
||||
do {
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@ static int xfrm_output_gso(struct sk_buff *skb)
|
|||
|
||||
segs = skb_gso_segment(skb, 0);
|
||||
kfree_skb(skb);
|
||||
if (unlikely(IS_ERR(segs)))
|
||||
if (IS_ERR(segs))
|
||||
return PTR_ERR(segs);
|
||||
|
||||
do {
|
||||
|
|
|
|||
Loading…
Reference in a new issue