staging: rtl8192u: ieee80211: rtl819x_BAProc: Replace MSECS with msecs_to_jiffies
PATCH 2/6 staging: rtl8192u: ieee80211: rtl819x_BAProc: 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>
--- drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c +2 -1
@@ -19,7 +19,8 @@ static void ActivateBAEntry(struct ieee80211_device *ieee, PBA_RECORD pBA, u16 T { pBA->bValid = true;if (Time !=0 ) -mod_timer (&pBA->Timer, jiffies +MSECS (Time)); +mod_timer (&pBA->Timer, + jiffies +msecs_to_jiffies (Time)); }/********************************************************************************************************************
Signature · 1 line
1.9.1
Quoted 23 lines · Amitoj Kaur Chawla
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]>--- drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c +0
-0
drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c static void ActivateBAEntry(struct ieee80211_device *ieee, PBA_RECORD pBA, u16 T · line 23
Quoted 6 lines
drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c +2
-1@@ -19,7 +19,8 @@ static void ActivateBAEntry(struct ieee80211_device *ieee, PBA_RECORD pBA, u16 T { pBA->bValid = true;if (Time !=0 ) -mod_timer (&pBA->Timer, jiffies +MSECS (Time)); +mod_timer (&pBA->Timer, + jiffies +msecs_to_jiffies (Time));
I think that the call would fit on one line.
julia
Quoted 13 lines
drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c +0
-1}/******************************************************************************************************************** -- 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/20160212144011.GA1274%40amitoj-Inspiron-3542.
For more options, visit https://groups.google.com/d/optout.
Quoted 9 lines · Julia Lawall
drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c static void ActivateBAEntry(struct ieee80211_device *ieee, PBA_RECORD pBA, u16 T · line 23
Quoted 5 lines
pBA->bValid = true; if(Time != 0)drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c +2
-1-mod_timer (&pBA->Timer, jiffies +MSECS (Time)); +mod_timer (&pBA->Timer, + jiffies +msecs_to_jiffies (Time));I think that the call would fit on one line.
julia
Yes it does. I assumed it wouldn't. My bad.
Is this the only change required in this particular patchset? For the other patches, your suggestions seem to be best incorporated as separate patches?
Amitoj
Quoted 9 lines · Amitoj Kaur Chawla
Quoted 8 lines · Julia Lawall
drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c static void ActivateBAEntry(struct ieee80211_device *ieee, PBA_RECORD pBA, u16 T · line 23
Quoted 5 lines
pBA->bValid = true; if(Time != 0)drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c +2
-1-mod_timer (&pBA->Timer, jiffies +MSECS (Time)); +mod_timer (&pBA->Timer, + jiffies +msecs_to_jiffies (Time));I think that the call would fit on one line.
Quoted 7 lines
Quoted 1 line
julia
Yes it does. I assumed it wouldn't. My bad.
Is this the only change required in this particular patchset? For the other patches, your suggestions seem to be best incorporated as separate patches?
I agree with you on that.
julia