diff options
author | Jiri Pirko <jiri@mellanox.com> | 2019-09-12 11:49:44 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-09-13 23:11:14 +0300 |
commit | 35c7ff349a2d1df1b59909f67ba4ddcd84ad934e (patch) | |
tree | 574260b18587dd65e5563abc016d945602749655 /drivers/net/ethernet/mellanox/mlx4/catas.c | |
parent | c6af0c227a22bb6bb8ff72f043e0fb6d99fd6515 (diff) | |
download | linux-35c7ff349a2d1df1b59909f67ba4ddcd84ad934e.tar.xz |
mlx4: Split restart_one into two functions
Split the function restart_one into two functions and separate teardown
and buildup.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/catas.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/catas.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/catas.c b/drivers/net/ethernet/mellanox/mlx4/catas.c index 87e90b5d4d7d..5b11557f1ae4 100644 --- a/drivers/net/ethernet/mellanox/mlx4/catas.c +++ b/drivers/net/ethernet/mellanox/mlx4/catas.c @@ -210,7 +210,7 @@ static void mlx4_handle_error_state(struct mlx4_dev_persistent *persist) mutex_lock(&persist->interface_state_mutex); if (persist->interface_state & MLX4_INTERFACE_STATE_UP && !(persist->interface_state & MLX4_INTERFACE_STATE_DELETION)) { - err = mlx4_restart_one(persist->pdev, false, NULL); + err = mlx4_restart_one(persist->pdev); mlx4_info(persist->dev, "mlx4_restart_one was ended, ret=%d\n", err); } |