rtl8723ds: Fix warning in do_div

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2023-08-01 12:37:02 -05:00
parent c65bc55a36
commit 47ce045cd8

View File

@ -342,7 +342,8 @@ static u64 rtw_get_systime_us(void)
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 20, 0))
ktime_t ts;
ts = ktime_get_boottime();
return do_div(ts, 1000);
do_div(ts, (uint32_t)1000);
return ts;
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 39))
struct timespec ts;
get_monotonic_boottime(&ts);