mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
staging: rtl8188eu: use msecs_to_jiffies for conversions
This is only an API consolidation to make things more readable. Instances of var * HZ / 1000 are replaced by msecs_to_jiffies(var). Signed-off-by: Nicholas Mc Guire <der.herr@hofr.at> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1ba2c5a808
commit
37257276a4
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ static inline void _init_timer(struct timer_list *ptimer,
|
|||
|
||||
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)));
|
||||
}
|
||||
|
||||
#define RTW_TIMER_HDL_ARGS void *FunctionContext
|
||||
|
|
Loading…
Reference in a new issue