datapath: Remove explicit 'unlikely' from IS_ERR calls.
authorBen Pfaff <blp@nicira.com>
Sat, 11 Dec 2010 00:41:33 +0000 (16:41 -0800)
committerBen Pfaff <blp@nicira.com>
Mon, 13 Dec 2010 18:24:04 +0000 (10:24 -0800)
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>
datapath/actions.c
datapath/datapath.c
datapath/tunnel.c

index 67f6cd41d3dd346f00d89168b5c5f2a139762072..6defd2d4f0e0228eb01979f41b49118ffae885c0 100644 (file)
@@ -138,7 +138,7 @@ static struct sk_buff *modify_vlan_tci(struct datapath *dp, struct sk_buff *skb,
 
                        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;
index 634ac1b65c56afec4364a9b24515e1df03a7d462..55d3c67c50535388e60df26f19ceb0219893df44 100644 (file)
@@ -613,7 +613,7 @@ int dp_output_control(struct datapath *dp, struct sk_buff *skb, int queue_no,
                
                kfree_skb(skb);
                skb = nskb;
-               if (unlikely(IS_ERR(skb))) {
+               if (IS_ERR(skb)) {
                        err = PTR_ERR(skb);
                        goto err;
                }
index 3534909313622bc6cb2d2153d99434c753f3edcf..1e402931e8f874cca1c64fb6c69e70bbb6d4981d 100644 (file)
@@ -1045,7 +1045,7 @@ static struct sk_buff *handle_offloads(struct sk_buff *skb,
                 */
                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;
                        }
@@ -1053,7 +1053,7 @@ static struct sk_buff *handle_offloads(struct sk_buff *skb,
 
                nskb = skb_gso_segment(skb, 0);
                kfree_skb(skb);
-               if (unlikely(IS_ERR(nskb))) {
+               if (IS_ERR(nskb)) {
                        err = PTR_ERR(nskb);
                        goto error;
                }
@@ -1061,7 +1061,7 @@ static struct sk_buff *handle_offloads(struct sk_buff *skb,
                skb = nskb;
        } else {
                skb = check_headroom(skb, min_headroom);
-               if (unlikely(IS_ERR(skb))) {
+               if (IS_ERR(skb)) {
                        err = PTR_ERR(skb);
                        goto error;
                }
@@ -1199,7 +1199,7 @@ int tnl_send(struct vport *vport, struct sk_buff *skb)
 
        /* Offloading */
        skb = handle_offloads(skb, mutable, rt);
-       if (unlikely(IS_ERR(skb)))
+       if (IS_ERR(skb))
                goto error;
 
        /* MTU */