net/mlx5: Remove the flag MLX5_INTERFACE_STATE_SHUTDOWN
MLX5_INTERFACE_STATE_SHUTDOWN is not used in the code.
Fixes: 5fc7197d3a
("net/mlx5: Add pci shutdown callback")
Signed-off-by: Huy Nguyen <huyn@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
This commit is contained in:
parent
b3cb538849
commit
10a8d00707
|
@ -1563,8 +1563,6 @@ static void shutdown(struct pci_dev *pdev)
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
dev_info(&pdev->dev, "Shutdown was called\n");
|
dev_info(&pdev->dev, "Shutdown was called\n");
|
||||||
/* Notify mlx5 clients that the kernel is being shut down */
|
|
||||||
set_bit(MLX5_INTERFACE_STATE_SHUTDOWN, &dev->intf_state);
|
|
||||||
err = mlx5_try_fast_unload(dev);
|
err = mlx5_try_fast_unload(dev);
|
||||||
if (err)
|
if (err)
|
||||||
mlx5_unload_one(dev, priv, false);
|
mlx5_unload_one(dev, priv, false);
|
||||||
|
|
|
@ -674,7 +674,6 @@ enum mlx5_device_state {
|
||||||
|
|
||||||
enum mlx5_interface_state {
|
enum mlx5_interface_state {
|
||||||
MLX5_INTERFACE_STATE_UP = BIT(0),
|
MLX5_INTERFACE_STATE_UP = BIT(0),
|
||||||
MLX5_INTERFACE_STATE_SHUTDOWN = BIT(1),
|
|
||||||
};
|
};
|
||||||
|
|
||||||
enum mlx5_pci_status {
|
enum mlx5_pci_status {
|
||||||
|
|
Loading…
Reference in New Issue