As David Miller pointed out on netdev today, IS_ERR has a built-in
'unlikely', so there's no point in adding one of our own.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
segs = skb_gso_segment(skb, 0);
kfree_skb(skb);
- if (unlikely(IS_ERR(segs)))
+ if (IS_ERR(segs))
return ERR_CAST(segs);
actions_len_left = actions_len;
kfree_skb(skb);
skb = nskb;
- if (unlikely(IS_ERR(skb))) {
+ if (IS_ERR(skb)) {
err = PTR_ERR(skb);
goto err;
}
*/
if (skb_headroom(skb) < min_headroom) {
skb = check_headroom(skb, min_headroom);
- if (unlikely(IS_ERR(skb))) {
+ if (IS_ERR(skb)) {
err = PTR_ERR(skb);
goto error;
}
nskb = skb_gso_segment(skb, 0);
kfree_skb(skb);
- if (unlikely(IS_ERR(nskb))) {
+ if (IS_ERR(nskb)) {
err = PTR_ERR(nskb);
goto error;
}
skb = nskb;
} else {
skb = check_headroom(skb, min_headroom);
- if (unlikely(IS_ERR(skb))) {
+ if (IS_ERR(skb)) {
err = PTR_ERR(skb);
goto error;
}
/* Offloading */
skb = handle_offloads(skb, mutable, rt);
- if (unlikely(IS_ERR(skb)))
+ if (IS_ERR(skb))
goto error;
/* MTU */