OSDN Git Service

net/mlx5: Remove redundant unlikely()
authorTobias Klauser <tklauser@distanz.ch>
Tue, 26 Sep 2017 13:13:23 +0000 (15:13 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Sep 2017 17:15:44 +0000 (10:15 -0700)
IS_ERR() already implies unlikely(), so it can be omitted.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c

index 4614ddf..6a7c8b0 100644 (file)
@@ -256,7 +256,7 @@ struct sk_buff *mlx5e_ipsec_handle_tx_skb(struct net_device *netdev,
                        goto drop;
                }
        mdata = mlx5e_ipsec_add_metadata(skb);
-       if (unlikely(IS_ERR(mdata))) {
+       if (IS_ERR(mdata)) {
                atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_metadata);
                goto drop;
        }