Skip to contentSkip to conversation

staging: rtl8192u: ieee80211: Remove MSECS macro

PATCH In review Amitoj Kaur Chawla 2 participants 3 messages Feb 13, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH v2 6/6 staging: rtl8192u: ieee80211: Remove MSECS macro

Remove driver specific macro MSECS since all instances of this macro have been replaced by direct calls to msecs_to_jiffies().

---
Changes in v2:
-None

 drivers/staging/rtl8192u/ieee80211/ieee80211.h | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/rtl8192u/ieee80211/ieee80211.h +0 -1
index 967ef9a..c0a0897 100644
@@ -329,7 +329,6 @@ typedef struct ieee_param {
 
 
 // linux under 2.6.9 release may not support it, so modify it for common use
-#define MSECS(t) msecs_to_jiffies(t)
 #define msleep_interruptible_rsl  msleep_interruptible
 
 #define IEEE80211_DATA_LEN		2304
Signature · 1 line
1.9.1
#1 lore raw
Quoted 16 lines · Amitoj Kaur Chawla

Remove driver specific macro MSECS since all instances of this macro have been replaced by direct calls to msecs_to_jiffies().

---
Changes in v2:
-None

 drivers/staging/rtl8192u/ieee80211/ieee80211.h | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/rtl8192u/ieee80211/ieee80211.h +0 -0
index 967ef9a..c0a0897 100644

drivers/staging/rtl8192u/ieee80211/ieee80211.h typedef struct ieee_param { · line 332

Quoted 5 lines
drivers/staging/rtl8192u/ieee80211/ieee80211.h +0 -1
@@ -329,7 +329,6 @@ typedef struct ieee_param {
 
 
 // linux under 2.6.9 release may not support it, so modify it for common use
-#define MSECS(t) msecs_to_jiffies(t)
 #define msleep_interruptible_rsl  msleep_interruptible

In another patch, this macro looks like a good candidate for dropping too.

julia

Quoted 12 lines
drivers/staging/rtl8192u/ieee80211/ieee80211.h +0 -0
 #define IEEE80211_DATA_LEN		2304
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/20160213043423.GA6239%40amitoj-Inspiron-3542.
For more options, visit https://groups.google.com/d/optout.
#2 lore raw
Quoted 22 lines · Julia Lawall
Quoted 18 lines · Amitoj Kaur Chawla

Remove driver specific macro MSECS since all instances of this macro have been replaced by direct calls to msecs_to_jiffies().

---
Changes in v2:
-None

 drivers/staging/rtl8192u/ieee80211/ieee80211.h | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/rtl8192u/ieee80211/ieee80211.h +0 -0
index 967ef9a..c0a0897 100644
@@ -329,7 +329,6 @@ typedef struct ieee_param {
 
 
Quoted 8 lines

drivers/staging/rtl8192u/ieee80211/ieee80211.h typedef struct ieee_param { · line 332

Quoted 3 lines
drivers/staging/rtl8192u/ieee80211/ieee80211.h +0 -1
 // linux under 2.6.9 release may not support it, so modify it for common use
-#define MSECS(t) msecs_to_jiffies(t)
 #define msleep_interruptible_rsl  msleep_interruptible

In another patch, this macro looks like a good candidate for dropping too.

julia

Hmm, yes will see the instances for this too.

Thanks,
Amitoj