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

@@ -2428,7 +2428,7 @@ void rtw_debug_rx_bcn(_adapter *adapter, u8 *pframe, u32 packet_len)
update_TSF(pmlmeext, pframe, packet_len);
tsf = pmlmeext->TSFValue;
tsf_offset = rtw_modular64(pmlmeext->TSFValue, (mlmeinfo->bcn_interval * 1024));
tsf_offset = do_div(pmlmeext->TSFValue, (mlmeinfo->bcn_interval * 1024));
/*get TIM IE*/
/*DTIM Count*/