Skip to content

Commit 23541b2

Browse files
shirazsaleemjgunthorpe
authored andcommitted
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 <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent d4994d2 commit 23541b2

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/infiniband/hw/i40iw/i40iw_ctrl.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3957,8 +3957,6 @@ enum i40iw_status_code i40iw_config_fpm_values(struct i40iw_sc_dev *dev, u32 qp_
39573957
pblewanted -= FPM_MULTIPLIER * 1000;
39583958
} while (sd_needed > hmc_fpm_misc->max_sds && loop_count < 2000);
39593959

3960-
sd_needed = i40iw_est_sd(dev, hmc_info);
3961-
39623960
i40iw_debug(dev, I40IW_DEBUG_HMC,
39633961
"loop_cnt=%d, sd_needed=%lld, qpcnt = %d, cqcnt=%d, mrcnt=%d, pblecnt=%d\n",
39643962
loop_count, sd_needed,

0 commit comments

Comments
 (0)