staging: rtl8192u: ieee80211: Replace MSEC macro with msecs_to_jiffies
PATCH 1/1 staging: rtl8192u: ieee80211: Replace MSEC macro 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>
--- drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c +2 -1
@@ -212,7 +212,8 @@ static void AdmitTS(struct ieee80211_device *ieee,del_timer_sync (&pTsCommonInfo->InactTimer);if (InactTime!=0 ) -mod_timer (&pTsCommonInfo->InactTimer, jiffies +MSECS (InactTime)); +mod_timer (&pTsCommonInfo->InactTimer, + jiffies +msecs_to_jiffies (InactTime)); }
Signature · 1 line
1.9.1
Quoted 4 lines · Amitoj Kaur Chawla
Replace driver specific macro MSECS with
msecs_to_jiffies().This was found using the following Coccinelle semantic patch:
Quoted 8 lines
//<smpl>
@@
expression e;
@@- MSECS(e)
+msecs_to_jiffies(e)
//</smpl>
Can you get rid of all the uses and remove the definition?
julia
Quoted 30 lines
Signed-off-by Amitoj Kaur Chawla <[email protected]>--- drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c +2
-1@@ -212,7 +212,8 @@ static void AdmitTS(struct ieee80211_device *ieee,del_timer_sync (&pTsCommonInfo->InactTimer);if (InactTime!=0 ) -mod_timer (&pTsCommonInfo->InactTimer, jiffies +MSECS (InactTime)); +mod_timer (&pTsCommonInfo->InactTimer, + jiffies +msecs_to_jiffies (InactTime)); }Signature · 8 lines
1.9.1 -- You received this message because you are subscribed to the Google Groups "outreachy-kernel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20160212092152.GA26927%40amitoj-Inspiron-3542. For more options, visit https://groups.google.com/d/optout.
Quoted 5 lines · Julia Lawall
Can you get rid of all the uses and remove the definition?
julia
Sure,
I wasn't completely sure that the change is a desired one, so sent only the one patch.
What I'll do is send a patchset to completely remove the instances and the definition from the driver including this one again.
Amitoj
Quoted 11 lines · Amitoj Kaur Chawla
Quoted 5 lines · Julia Lawall
Can you get rid of all the uses and remove the definition?
julia
Sure,
I wasn't completely sure that the change is a desired one, so sent only the one patch.
Reasonable strategy.
Quoted 2 lines
What I'll do is send a patchset to completely remove the instances and the definition from the driver including this one again.
Sounds good.
julia