net/mlx5: Remove pointless vport lookup from mlx5_esw_check_port_type()
authorJiri Pirko <jiri@nvidia.com>
Thu, 1 Jun 2023 07:17:17 +0000 (09:17 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 23 Jun 2023 19:27:35 +0000 (12:27 -0700)
commit29e4c95faee52a9b7a4f1293cb92cd17a0b5fd91
treeace530c1432bb826bd7d1bde155afdeaa7f557cb
parent899862b653d74ed5fc3a61cd5e14a88b824a71d7
net/mlx5: Remove pointless vport lookup from mlx5_esw_check_port_type()

As xa_get_mark() returns false in case the entry is not present,
no need to redundantly check if vport is present. Remove the lookup.

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.c