mwifiex: make use of msecs_to_jiffies()
authorBing Zhao <bzhao@marvell.com>
Sat, 20 Apr 2013 00:44:44 +0000 (17:44 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 22 Apr 2013 19:20:28 +0000 (15:20 -0400)
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>
drivers/net/wireless/mwifiex/11n_rxreorder.c
drivers/net/wireless/mwifiex/cmdevt.c

index 5e796f8..ada809f 100644 (file)
@@ -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
index da469c3..74db0d2 100644 (file)
@@ -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;
 }