mwifiex: make use of msecs_to_jiffies()
Use msecs_to_jiffies() wherever possible. Signed-off-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
0648f3a4b0
commit
4587eea5b7
2 changed files with 2 additions and 2 deletions
|
@ -447,7 +447,7 @@ int mwifiex_11n_rx_reorder_pkt(struct mwifiex_private *priv,
|
|||
end_win = ((start_win + win_size) - 1) & (MAX_TID_VALUE - 1);
|
||||
del_timer(&tbl->timer_context.timer);
|
||||
mod_timer(&tbl->timer_context.timer,
|
||||
jiffies + (MIN_FLUSH_TIMER_MS * win_size * HZ) / 1000);
|
||||
jiffies + msecs_to_jiffies(MIN_FLUSH_TIMER_MS * win_size));
|
||||
|
||||
/*
|
||||
* If seq_num is less then starting win then ignore and drop the
|
||||
|
|
|
@ -250,7 +250,7 @@ static int mwifiex_dnld_cmd_to_fw(struct mwifiex_private *priv,
|
|||
|
||||
/* Setup the timer after transmit command */
|
||||
mod_timer(&adapter->cmd_timer,
|
||||
jiffies + (MWIFIEX_TIMER_10S * HZ) / 1000);
|
||||
jiffies + msecs_to_jiffies(MWIFIEX_TIMER_10S));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue