Staging: rtl8712: Remove unused Macro
PATCH 1/1 Staging: rtl8712: Remove unused Macro
Removes SetFrameType Macro because its not used elsewhere
--- drivers/staging/rtl8712/wifi.h | 7 ------- 1 file changed, 7 deletions(-)
drivers/staging/rtl8712/wifi.h +0 -7
@@ -246,13 +246,6 @@ enum WIFI_REG_DOMAIN {#define GetFrameType (pbuf) (le16_to_cpu(*(unsigned short *)(pbuf)) & \ (BIT(3) | BIT(2))) -#define SetFrameType (pbuf, type) \ - do { \ - *(unsigned short *)(pbuf) &= cpu_to_le16(~(BIT(3) | \ - BIT(2))); \ - *(unsigned short *)(pbuf) |= cpu_to_le16(type); \ - } while (0) -#define GetFrameSubType (pbuf) (cpu_to_le16(*(unsigned short *)(pbuf)) & \ (BIT(7) | BIT(6) | BIT(5) | BIT(4) | BIT(3) | \ BIT(2)))
Signature · 1 line
1.9.1
Quoted 15 lines · Katie Dunne
Removes SetFrameType Macro because its not used elsewhere
Signed-off-by Katie Dunne <[email protected]>--- drivers/staging/rtl8712/wifi.h | 7 ------- 1 file changed, 7 deletions(-)drivers/staging/rtl8712/wifi.h +0
-0@@ -246,13 +246,6 @@ enum WIFI_REG_DOMAIN {#define GetFrameType (pbuf) (le16_to_cpu(*(unsigned short *)(pbuf)) & \ (BIT(3) | BIT(2)))
drivers/staging/rtl8712/wifi.h enum WIFI_REG_DOMAIN { · line 251
Quoted 10 lines
drivers/staging/rtl8712/wifi.h +0
-7-#define SetFrameType (pbuf, type) \ - do { \ - *(unsigned short *)(pbuf) &= cpu_to_le16(~(BIT(3) | \ - BIT(2))); \ - *(unsigned short *)(pbuf) |= cpu_to_le16(type); \ - } while (0) -#define GetFrameSubType (pbuf) (cpu_to_le16(*(unsigned short *)(pbuf)) & \ (BIT(7) | BIT(6) | BIT(5) | BIT(4) | BIT(3) | \ BIT(2)))
Maybe check on some of the other macros nearby?
julia
Quoted 10 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/20150224162637.GA9677%40katie-Inspiron-5748.
For more options, visit https://groups.google.com/d/optout.
Quoted 15 lines · Katie Dunne
Removes SetFrameType Macro because its not used elsewhere
Signed-off-by Katie Dunne <[email protected]>--- drivers/staging/rtl8712/wifi.h | 7 ------- 1 file changed, 7 deletions(-)drivers/staging/rtl8712/wifi.h +0
-0@@ -246,13 +246,6 @@ enum WIFI_REG_DOMAIN {#define GetFrameType (pbuf) (le16_to_cpu(*(unsigned short *)(pbuf)) & \ (BIT(3) | BIT(2)))
drivers/staging/rtl8712/wifi.h enum WIFI_REG_DOMAIN { · line 251
Quoted 10 lines
drivers/staging/rtl8712/wifi.h +0
-7-#define SetFrameType (pbuf, type) \ - do { \ - *(unsigned short *)(pbuf) &= cpu_to_le16(~(BIT(3) | \ - BIT(2))); \ - *(unsigned short *)(pbuf) |= cpu_to_le16(type); \ - } while (0) -#define GetFrameSubType (pbuf) (cpu_to_le16(*(unsigned short *)(pbuf)) & \ (BIT(7) | BIT(6) | BIT(5) | BIT(4) | BIT(3) | \ BIT(2)))
Also,
$ ack-grep SetFrameType drivers/staging/rtl8188eu/include/wifi.h 314:#define SetFrameType(pbuf, type) \
drivers/staging/rtl8712/wifi.h
249:#define SetFrameType(pbuf, type) \
Daniel.
Greg KH
maintainerQuoted 15 lines · Katie Dunne
Removes SetFrameType Macro because its not used elsewhere
Signed-off-by Katie Dunne <[email protected]>--- drivers/staging/rtl8712/wifi.h | 7 ------- 1 file changed, 7 deletions(-)drivers/staging/rtl8712/wifi.h +0
-0@@ -246,13 +246,6 @@ enum WIFI_REG_DOMAIN {#define GetFrameType (pbuf) (le16_to_cpu(*(unsigned short *)(pbuf)) & \ (BIT(3) | BIT(2)))
drivers/staging/rtl8712/wifi.h enum WIFI_REG_DOMAIN { · line 251
Quoted 10 lines
drivers/staging/rtl8712/wifi.h +0
-7-#define SetFrameType (pbuf, type) \ - do { \ - *(unsigned short *)(pbuf) &= cpu_to_le16(~(BIT(3) | \ - BIT(2))); \ - *(unsigned short *)(pbuf) |= cpu_to_le16(type); \ - } while (0) -#define GetFrameSubType (pbuf) (cpu_to_le16(*(unsigned short *)(pbuf)) & \ (BIT(7) | BIT(6) | BIT(5) | BIT(4) | BIT(3) | \ BIT(2)))
No longer applies to my tree, sorry :(