net/mlx5: Remove redundant check from mlx5_esw_query_vport_vhca_id()
authorJiri Pirko <jiri@nvidia.com>
Wed, 31 May 2023 13:11:07 +0000 (15:11 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 23 Jun 2023 19:27:34 +0000 (12:27 -0700)
commit899862b653d74ed5fc3a61cd5e14a88b824a71d7
tree89a09d0aca96710b456d740ac2f907aa1d23b7bf
parent0d0946d6488e785c30a0c4fce4cf21dc7da6dc1f
net/mlx5: Remove redundant check from mlx5_esw_query_vport_vhca_id()

Since mlx5_esw_query_vport_vhca_id() could be called either from
mlx5_esw_vport_enable() or mlx5_esw_vport_disable() where the
the check is done, this is always false here.
Remove the redundant check.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c