Commit 92978ee8 authored by Tobias Klauser's avatar Tobias Klauser Committed by David S. Miller

net/mlx5: Remove redundant unlikely()

IS_ERR() already implies unlikely(), so it can be omitted.
Signed-off-by: default avatarTobias Klauser <tklauser@distanz.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1fac4b2f
...@@ -256,7 +256,7 @@ struct sk_buff *mlx5e_ipsec_handle_tx_skb(struct net_device *netdev, ...@@ -256,7 +256,7 @@ struct sk_buff *mlx5e_ipsec_handle_tx_skb(struct net_device *netdev,
goto drop; goto drop;
} }
mdata = mlx5e_ipsec_add_metadata(skb); 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); atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_metadata);
goto drop; goto drop;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment