mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2025-12-10 00:04:17 +00:00
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:
committed by
Carlos Garcés
parent
d7c3737cd5
commit
4d3d23dd24
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user