summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/i40iw/i40iw_ctrl.c
diff options
context:
space:
mode:
authorShiraz Saleem <shiraz.saleem@intel.com>2018-01-12 03:10:50 +0300
committerJason Gunthorpe <jgg@mellanox.com>2018-01-17 06:38:18 +0300
commit23541b28e5a33a277f654dd6672484ded1050216 (patch)
tree5a50063974e422077be9cdf24e5c43df7eb1a1a6 /drivers/infiniband/hw/i40iw/i40iw_ctrl.c
parentd4994d2f1f7a7b24622f990d4bb437eacf69b816 (diff)
downloadlinux-23541b28e5a33a277f654dd6672484ded1050216.tar.xz
i40iw: Remove extra call to i40iw_est_sd()
Remove redundant estimate SD function call. sd_needed should already be updated at the end of the do while resource reduction loop. Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/i40iw/i40iw_ctrl.c')
-rw-r--r--drivers/infiniband/hw/i40iw/i40iw_ctrl.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/i40iw/i40iw_ctrl.c b/drivers/infiniband/hw/i40iw/i40iw_ctrl.c
index caa958177631..c91dcfdf933f 100644
--- a/drivers/infiniband/hw/i40iw/i40iw_ctrl.c
+++ b/drivers/infiniband/hw/i40iw/i40iw_ctrl.c
@@ -3957,8 +3957,6 @@ enum i40iw_status_code i40iw_config_fpm_values(struct i40iw_sc_dev *dev, u32 qp_
pblewanted -= FPM_MULTIPLIER * 1000;
} while (sd_needed > hmc_fpm_misc->max_sds && loop_count < 2000);
- sd_needed = i40iw_est_sd(dev, hmc_info);
-
i40iw_debug(dev, I40IW_DEBUG_HMC,
"loop_cnt=%d, sd_needed=%lld, qpcnt = %d, cqcnt=%d, mrcnt=%d, pblecnt=%d\n",
loop_count, sd_needed,