Skip to content

Commit

Permalink
net/mlx5e: Remove unlikely() from WARN*() condition
Browse files Browse the repository at this point in the history
"unlikely(WARN_ON_ONCE(x))" is excessive. WARN_ON_ONCE() already uses
unlikely() internally.

Signed-off-by: Denis Efremov <efremov@linux.com>
Cc: Boris Pismenny <borisp@mellanox.com>
Cc: Saeed Mahameed <saeedm@mellanox.com>
Cc: Leon Romanovsky <leon@kernel.org>
Cc: Joe Perches <joe@perches.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: netdev@vger.kernel.org
Acked-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Denis Efremov authored and David S. Miller committed Aug 31, 2019
1 parent e72cb7d commit 7cf92cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ struct sk_buff *mlx5e_ktls_handle_tx_skb(struct net_device *netdev,
goto out;

tls_ctx = tls_get_ctx(skb->sk);
if (unlikely(WARN_ON_ONCE(tls_ctx->netdev != netdev)))
if (WARN_ON_ONCE(tls_ctx->netdev != netdev))
goto err_out;

priv_tx = mlx5e_get_ktls_tx_priv_ctx(tls_ctx);
Expand Down

0 comments on commit 7cf92cc

Please sign in to comment.