]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
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 5e796f8470885d6cf25eb9bbb678c7e8a4952174..ada809f576fe56c290a9150728b5b08e358c2d53 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 da469c336aa1ad36ad682ca3d06d9242b7212145..74db0d24a5790a9ee29b37408092a3cda859c97a 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;
 }