net/mlx5: Don't rely on always true registered field
authorLeon Romanovsky <leonro@nvidia.com>
Wed, 28 Jul 2021 07:33:46 +0000 (10:33 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Jul 2021 09:23:45 +0000 (10:23 +0100)
commit35f6986743d78544779a892415c2edefa1f36a1c
tree9253a1d3ae22fb1f893f06bc0eedfd98c86fd0f9
parentacf34954efd17d4f65c7bb3e614381e6afc33222
net/mlx5: Don't rely on always true registered field

Devlink is an integral part of mlx5 driver and all flows ensure that
devlink_*_register() will success. That makes the ->registered check
an obsolete.

Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en/devlink.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c