net/mlx5: Simplify mlx5_unload_one() and its callers
authorParav Pandit <parav@mellanox.com>
Mon, 9 Mar 2020 04:17:37 +0000 (23:17 -0500)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 26 Mar 2020 06:19:15 +0000 (23:19 -0700)
commitf999b706b7ab5dae45a3ee5c2b3bc2b47c11b0c5
tree26c4351de16c5a9d7581665f6389bc31eee57675
parentecd01db8711d4c608ef6636275e26a8b2069b798
net/mlx5: Simplify mlx5_unload_one() and its callers

mlx5_unload_one() always returns 0.
Simplify callers of mlx5_unload_one() and remove the dead code.

Reviewed-by: Moshe Shemesh <moshe@mellanox.com>
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/devlink.c
drivers/net/ethernet/mellanox/mlx5/core/main.c
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h