aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx4/fw.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/fw.c')
-rw-r--r--drivers/net/ethernet/mellanox/mlx4/fw.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/fw.c b/drivers/net/ethernet/mellanox/mlx4/fw.c
index bf159c0fe82..1d74e854114 100644
--- a/drivers/net/ethernet/mellanox/mlx4/fw.c
+++ b/drivers/net/ethernet/mellanox/mlx4/fw.c
@@ -1391,9 +1391,6 @@ int mlx4_INIT_PORT_wrapper(struct mlx4_dev *dev, int slave,
1391 if (priv->mfunc.master.slave_state[slave].init_port_mask & (1 << port)) 1391 if (priv->mfunc.master.slave_state[slave].init_port_mask & (1 << port))
1392 return 0; 1392 return 0;
1393 1393
1394 if (dev->caps.port_mask[port] == MLX4_PORT_TYPE_IB)
1395 return -ENODEV;
1396
1397 if (dev->caps.port_mask[port] != MLX4_PORT_TYPE_IB) { 1394 if (dev->caps.port_mask[port] != MLX4_PORT_TYPE_IB) {
1398 /* Enable port only if it was previously disabled */ 1395 /* Enable port only if it was previously disabled */
1399 if (!priv->mfunc.master.init_port_ref[port]) { 1396 if (!priv->mfunc.master.init_port_ref[port]) {
@@ -1489,9 +1486,6 @@ int mlx4_CLOSE_PORT_wrapper(struct mlx4_dev *dev, int slave,
1489 (1 << port))) 1486 (1 << port)))
1490 return 0; 1487 return 0;
1491 1488
1492 if (dev->caps.port_mask[port] == MLX4_PORT_TYPE_IB)
1493 return -ENODEV;
1494
1495 if (dev->caps.port_mask[port] != MLX4_PORT_TYPE_IB) { 1489 if (dev->caps.port_mask[port] != MLX4_PORT_TYPE_IB) {
1496 if (priv->mfunc.master.init_port_ref[port] == 1) { 1490 if (priv->mfunc.master.init_port_ref[port] == 1) {
1497 err = mlx4_cmd(dev, 0, port, 0, MLX4_CMD_CLOSE_PORT, 1491 err = mlx4_cmd(dev, 0, port, 0, MLX4_CMD_CLOSE_PORT,