net/mlx5: Remove impossible checks of interface state
authorLeon Romanovsky <leonro@nvidia.com>
Mon, 2 Nov 2020 14:02:14 +0000 (16:02 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 11 Mar 2021 22:35:10 +0000 (14:35 -0800)
commitd89edb36070572e1b8889009fc3c143e7c290e16
tree9071257d85c27f47e81a60f5a37f5861b2acc6f7
parent7bef147a6ab6e686f4e3c6eadbda56d4ad9833ba
net/mlx5: Remove impossible checks of interface state

The interface state is constant at this stage and checked
before calling to the register/unregister reserved GIDs.

There is no need to double check it.

Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c