diff options
Diffstat (limited to 'drivers/infiniband/hw/mlx4/main.c')
-rw-r--r-- | drivers/infiniband/hw/mlx4/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c index 8b72cf392b34..0c3375524a64 100644 --- a/drivers/infiniband/hw/mlx4/main.c +++ b/drivers/infiniband/hw/mlx4/main.c | |||
@@ -1975,8 +1975,7 @@ static void mlx4_ib_alloc_eqs(struct mlx4_dev *dev, struct mlx4_ib_dev *ibdev) | |||
1975 | dev->caps.num_ports > dev->caps.comp_pool) | 1975 | dev->caps.num_ports > dev->caps.comp_pool) |
1976 | return; | 1976 | return; |
1977 | 1977 | ||
1978 | eq_per_port = rounddown_pow_of_two(dev->caps.comp_pool/ | 1978 | eq_per_port = dev->caps.comp_pool / dev->caps.num_ports; |
1979 | dev->caps.num_ports); | ||
1980 | 1979 | ||
1981 | /* Init eq table */ | 1980 | /* Init eq table */ |
1982 | added_eqs = 0; | 1981 | added_eqs = 0; |