]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb39e8f289239b882167601e7ede134591c6fc1a8
tree26c4351de16c5a9d7581665f6389bc31eee57675
parenta566478ed7c280ee68e8428ffe9f7708a6a0b151
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