Commit 34b8dae7 authored by Shraddha Barke's avatar Shraddha Barke Committed by Greg Kroah-Hartman

Staging: rtl8192u: Eliminate use of MSECS macro

Use msecs_to_jiffies instead of driver specific macro
MSECS. This is done using Coccinelle and semantic
patch used for this is as follows:

@@expression t;@@

- MSECS(t)
+ msecs_to_jiffies(t)
Signed-off-by: default avatarShraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4b6a8799
...@@ -3516,7 +3516,7 @@ static void watch_dog_timer_callback(unsigned long data) ...@@ -3516,7 +3516,7 @@ static void watch_dog_timer_callback(unsigned long data)
queue_delayed_work(priv->priv_wq, &priv->watch_dog_wq, 0); queue_delayed_work(priv->priv_wq, &priv->watch_dog_wq, 0);
mod_timer(&priv->watch_dog_timer, mod_timer(&priv->watch_dog_timer,
jiffies + MSECS(IEEE80211_WATCH_DOG_TIME)); jiffies + msecs_to_jiffies(IEEE80211_WATCH_DOG_TIME));
} }
static int _rtl8192_up(struct net_device *dev) static int _rtl8192_up(struct net_device *dev)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment