Skip to contentSkip to conversation

Staging: rtl8723au: Remove unused macros

PATCH In review Bhumika Goyal 3 participants 4 messages Feb 13, 2016 – Feb 14, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: rtl8723au: Remove unused macros

The macros PlatformAcquireSpinLock and PlatformReleaseSpinLock are not used anywhere so remove them. Used grep to find occurences.

---
 drivers/staging/rtl8723au/hal/rtl8723a_bt-coexist.c | 2 --
 1 file changed, 2 deletions(-)
drivers/staging/rtl8723au/hal/rtl8723a_bt-coexist.c +0 -2
index d46d1c7..33eabf4 100644
@@ -80,8 +80,6 @@ if ((BTCoexDbgLevel == _bt_dbg_on_)) {\
 #define PlatformProcessHCICommands(...)
 #define PlatformTxBTQueuedPackets(...)
 #define PlatformIndicateBTACLData(...)	(RT_STATUS_SUCCESS)
-#define PlatformAcquireSpinLock(padapter, type)
-#define PlatformReleaseSpinLock(padapter, type)
 
 #define GET_UNDECORATED_AVERAGE_RSSI(padapter)	\
 			(GET_HAL_DATA(padapter)->dmpriv.EntryMinUndecoratedSmoothedPWDB)
Signature · 1 line
1.9.1
maintainer
#1 lore raw
Quoted 13 lines · Bhumika Goyal

The macros PlatformAcquireSpinLock and PlatformReleaseSpinLock are not used anywhere so remove them. Used grep to find occurences.

---
 drivers/staging/rtl8723au/hal/rtl8723a_bt-coexist.c | 2 --
 1 file changed, 2 deletions(-)
drivers/staging/rtl8723au/hal/rtl8723a_bt-coexist.c +0 -0
index d46d1c7..33eabf4 100644

drivers/staging/rtl8723au/hal/rtl8723a_bt-coexist.c if ((BTCoexDbgLevel == _bt_dbg_on_)) {\ · line 84

Quoted 5 lines
drivers/staging/rtl8723au/hal/rtl8723a_bt-coexist.c +0 -2
@@ -80,8 +80,6 @@ if ((BTCoexDbgLevel == _bt_dbg_on_)) {\
 #define PlatformProcessHCICommands(...)
 #define PlatformTxBTQueuedPackets(...)
 #define PlatformIndicateBTACLData(...)	(RT_STATUS_SUCCESS)
-#define PlatformAcquireSpinLock(padapter, type)
-#define PlatformReleaseSpinLock(padapter, type)

Can you also remove the commented out places where these macros were being called?

thanks,

greg k-h

#2 lore raw
Quoted 30 lines · gregkh

Review

Quoted 9 lines · Bhumika Goyal

The macros PlatformAcquireSpinLock and PlatformReleaseSpinLock are not used anywhere so remove them. Used grep to find occurences.

Signed-off-by Bhumika Goyal <[email protected] <javascript:>>

---

 drivers/staging/rtl8723au/hal/rtl8723a_bt-coexist.c | 2 -- 
 1 file changed, 2 deletions(-) 
(quoted diff) +0 -0

b/drivers/staging/rtl8723au/hal/rtl8723a_bt-coexist.c

drivers/staging/rtl8723au/hal/rtl8723a_bt-coexist.c if ((BTCoexDbgLevel == _bt_dbg_on_)) {\ · line 84

Quoted 9 lines

index d46d1c7..33eabf4 100644

drivers/staging/rtl8723au/hal/rtl8723a_bt-coexist.c +0 -2
@@ -80,8 +80,6 @@ if ((BTCoexDbgLevel == _bt_dbg_on_)) {\ 
 #define PlatformProcessHCICommands(...) 
 #define PlatformTxBTQueuedPackets(...) 
 #define PlatformIndicateBTACLData(...)        (RT_STATUS_SUCCESS) 
-#define PlatformAcquireSpinLock(padapter, type) 
-#define PlatformReleaseSpinLock(padapter, type) 

Can you also remove the commented out places where these macros were being called?
Yeah sure. I am sending a patchset for that as the comments are in
rtl8192u.
thanks,

greg k-h

#3 lore raw
Quoted 25 lines · Bhumika Goyal

On Sunday, February 14, 2016 at 2:52:56 AM UTC+5:30, gregkh wrote:

      On Sun, Feb 14, 2016 at 01:42:56AM +0530, Bhumika Goyal wrote:
      > The macros PlatformAcquireSpinLock and
      PlatformReleaseSpinLock are not
      > used anywhere so remove them. Used grep to find occurences.
      >
      > Signed-off-by: Bhumika Goyal <[email protected]>
      > ---
      >  drivers/staging/rtl8723au/hal/rtl8723a_bt-coexist.c | 2 --
      >  1 file changed, 2 deletions(-)
      >
      > diff --git
      a/drivers/staging/rtl8723au/hal/rtl8723a_bt-coexist.c
      b/drivers/staging/rtl8723au/hal/rtl8723a_bt-coexist.c
      > index d46d1c7..33eabf4 100644
      > --- a/drivers/staging/rtl8723au/hal/rtl8723a_bt-coexist.c
      > +++ b/drivers/staging/rtl8723au/hal/rtl8723a_bt-coexist.c
      > @@ -80,8 +80,6 @@ if ((BTCoexDbgLevel == _bt_dbg_on_)) {\
      >  #define PlatformProcessHCICommands(...)
      >  #define PlatformTxBTQueuedPackets(...)
      >  #define
      PlatformIndicateBTACLData(...)        (RT_STATUS_SUCCESS)
      > -#define PlatformAcquireSpinLock(padapter, type)
Quoted 8 lines
      > -#define PlatformReleaseSpinLock(padapter, type)

      Can you also remove the commented out places where these macros
      were
      being called?
        Yeah sure. I am sending a patchset for that as the comments
      are in rtl8192u.
      thanks,

Please set up your mailer so that it makes a difference between the text you are responding to and the text that you write, Your response looks like it is coming from Greg.

julia

Quoted 14 lines

greg k-h

--
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 visithttps://groups.google.com/d/msgid/outreachy-kernel/fced03a5-0c11-4936-9521 -7a69e0624eab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.