summaryrefslogtreecommitdiffstats
path: root/drivers/staging/r8188eu/include/osdep_service.h
diff options
context:
space:
mode:
authorMartin Kaiser <martin@kaiser.cx>2022-01-15 17:55:32 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-01-25 16:27:23 +0100
commitac76abcbf1072a5d77f3274799933b25865ae985 (patch)
tree421cb3d93ca345cb510bd73a540b7c30bd71bdc0 /drivers/staging/r8188eu/include/osdep_service.h
parent2bd4aa6acb115d6fd9225401e3cf38852f6ec7de (diff)
downloadlinux-ac76abcbf1072a5d77f3274799933b25865ae985.tar.bz2
staging: r8188eu: call msecs_to_jiffies in _set_timer
The _set_timer wrapper function takes a timeout in milliseconds. Call msecs_to_jiffies to convert the timeout to jiffies. Don't do the calculation ourselves. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20220115165536.231210-8-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/r8188eu/include/osdep_service.h')
-rw-r--r--drivers/staging/r8188eu/include/osdep_service.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/r8188eu/include/osdep_service.h b/drivers/staging/r8188eu/include/osdep_service.h
index 754691cb2b12..e52e78b2c6b0 100644
--- a/drivers/staging/r8188eu/include/osdep_service.h
+++ b/drivers/staging/r8188eu/include/osdep_service.h
@@ -56,7 +56,7 @@ static inline struct list_head *get_list_head(struct __queue *queue)
static inline void _set_timer(struct timer_list *ptimer,u32 delay_time)
{
- mod_timer(ptimer , (jiffies+(delay_time*HZ/1000)));
+ mod_timer(ptimer, jiffies + msecs_to_jiffies(delay_time));
}
static inline int rtw_netif_queue_stopped(struct net_device *pnetdev)