diff options
author | Yevgeny Petrilin <yevgenyp@mellanox.co.il> | 2011-12-29 11:42:34 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-12-30 00:08:41 +0400 |
commit | 46c4674754cbb2bda00df652c4366086573c9b5a (patch) | |
tree | 584b782660f532ae67bb012df1e20675dbc9a80e | |
parent | b0460e4484f9e990caa817230204f9e3800cf955 (diff) | |
download | linux-46c4674754cbb2bda00df652c4366086573c9b5a.tar.xz |
mlx4_core: using array index for sense_allowed
Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/main.c b/drivers/net/ethernet/mellanox/mlx4/main.c index 1209934844c4..6bb62c580e2d 100644 --- a/drivers/net/ethernet/mellanox/mlx4/main.c +++ b/drivers/net/ethernet/mellanox/mlx4/main.c @@ -332,7 +332,7 @@ static int mlx4_dev_cap(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) * and perform sense_port FW command to try and set the correct * port type from beginning */ - if (mlx4_priv(dev)->sense.sense_allowed && dev->caps.default_sense[i]) { + if (mlx4_priv(dev)->sense.sense_allowed[i] && dev->caps.default_sense[i]) { enum mlx4_port_type sensed_port = MLX4_PORT_TYPE_NONE; dev->caps.possible_type[i] = MLX4_PORT_TYPE_AUTO; mlx4_SENSE_PORT(dev, i, &sensed_port); |