[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <66fb1e37-107e-54f4-4986-ca4e4bb99d2d@yandex.ru>
Date: Sun, 12 Apr 2020 16:34:08 +0300
From: Ivan Safonov <isaf21@...dex.ru>
To: Nishka Dasgupta <nishkadg.linux@...il.com>,
Larry Finger <Larry.Finger@...inger.net>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Michael Straube <straube.linux@...il.com>,
devel@...verdev.osuosl.org,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 5/8] staging: rtl8188eu: Remove function rtw_modular64()
> Remove function rtw_modular64 as all it does is call do_div.
This is wrong. Macro do_div(x, y) change first argument x, but
rtw_modular64(x, y) preserve it.
> + tsf = pmlmeext->TSFValue - do_div(pmlmeext->TSFValue, (pmlmeinfo->bcn_interval*1024)) - 1024; /* us */
rounddown(pmlmeext->TSFValue, pmlmeinfo->bcn_interval * 1024) - 1024
is a better replacement for
> - tsf = pmlmeext->TSFValue - rtw_modular64(pmlmeext->TSFValue, (pmlmeinfo->bcn_interval*1024)) - 1024; /* us */
Patch '[PATCH 01/10] staging: rtl8723bs: Remove function
rtw_modular64()' have same bug.
Ivan Safonov.
Powered by blists - more mailing lists