]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Simplify mlx5_register_device to return void
authorParav Pandit <parav@mellanox.com>
Mon, 9 Mar 2020 03:19:51 +0000 (22:19 -0500)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 26 Mar 2020 06:19:13 +0000 (23:19 -0700)
commitdac5e4ebe3e618e68ebe7c2b2db2fb7f49d94cab
tree7584a796dce9f1413162ff49227daa13ad822551
parentd571a752e34e3b89b0b45901184baf0ecef0f11c
net/mlx5: Simplify mlx5_register_device to return void

mlx5_register_device() doesn't check for any error and always returns 0.
Simplify mlx5_register_device() to return void and its caller, remove
dead code related to it.

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/dev.c
drivers/net/ethernet/mellanox/mlx5/core/main.c
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h