Remove wrapper around do_div

Wrapper routine rtw_modular64() contains only a call to do_div() and
is used once in the code. Remove the wrapper.

Link: https://lore.kernel.org/r/20210803135223.12543-9-Larry.Finger@lwfinger.net
This commit is contained in:
Larry Finger
2021-08-03 08:52:21 -05:00
committed by Carlos Garcés
parent d7c3737cd5
commit 4d3d23dd24
5 changed files with 4 additions and 24 deletions

View File

@@ -753,11 +753,11 @@ static u8 rtw_hal_mcc_update_timing_parameters(PADAPTER padapter, u8 force_updat
/* selecet policy table according TSF diff */
tsf0 = tsf[0];
beaconperiod_0 = pmccobjpriv->iface[0]->mlmepriv.cur_network.network.Configuration.BeaconPeriod;
tsf0 = rtw_modular64(tsf0, (beaconperiod_0 * TU));
tsf0 = do_div(tsf0, (beaconperiod_0 * TU));
tsf1 = tsf[1];
beaconperiod_1 = pmccobjpriv->iface[1]->mlmepriv.cur_network.network.Configuration.BeaconPeriod;
tsf1 = rtw_modular64(tsf1, (beaconperiod_1 * TU));
tsf1 = do_div(tsf1, (beaconperiod_1 * TU));
if (tsf0 > tsf1)
tsfdiff = tsf0- tsf1;