staging: rtl8192u: ieee80211: ieee80211_rx: Replace MSECS with msecs_to_jiffies
PATCH v2 4/6 staging: rtl8192u: ieee80211: ieee80211_rx: Replace MSECS with msecs_to_jiffies
Replace driver specific macro MSECS with msecs_to_jiffies().
This was found using the following Coccinelle semantic patch:
//<smpl>
@@
expression e;
@@
- MSECS(e)
+ msecs_to_jiffies(e)
//</smpl>
Signed-off-by Amitoj Kaur Chawla <[email protected]>
---
Changes in v2:
-None
drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c +2 -1
@@ -761,7 +761,8 @@ static void RxReorderIndicatePacket(struct ieee80211_device *ieee, pTS->RxTimeoutIndicateSeq = pTS->RxIndicateSeq;if (timer_pending (&pTS->RxPktPendingTimer))del_timer_sync (&pTS->RxPktPendingTimer); - pTS->RxPktPendingTimer.expires = jiffies +MSECS (pHTInfo->RxReorderPendingTime); + pTS->RxPktPendingTimer.expires = jiffies + +msecs_to_jiffies (pHTInfo->RxReorderPendingTime);add_timer (&pTS->RxPktPendingTimer); }
Signature · 1 line
1.9.1