staging: rtl8188eu: remove GlobalDebugLevel variable
authorPhillip Potter <phil@philpotter.co.uk>
Fri, 25 Jun 2021 00:07:55 +0000 (01:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Jun 2021 07:03:51 +0000 (09:03 +0200)
Remove GlobalDebugLevel variable and all of its uses, as it is now
no longer used anywhere in this driver.

Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
Link: https://lore.kernel.org/r/20210625000756.6313-23-phil@philpotter.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/odm.c
drivers/staging/rtl8188eu/include/rtw_debug.h
drivers/staging/rtl8188eu/os_dep/os_intfs.c

index 73b63e2ea0ff153e88eeebe20b081a8eebe673e1..ffc5394d5bb9f3c9a8dff16b05f812a810f0b505 100644 (file)
@@ -10,8 +10,6 @@
 #include "odm_precomp.h"
 #include "phy.h"
 
-u32 GlobalDebugLevel;
-
 /* avoid to warn in FreeBSD ==> To DO modify */
 static u32 EDCAParam[HT_IOT_PEER_MAX][3] = {
        /*  UL                  DL */
index d6b7975e59d64090cd6a8f68e95e733f54eaf248..0de6d7ba5d8b1ec21fa2d44cf1af30d00622ede4 100644 (file)
@@ -54,6 +54,4 @@
 #define _module_rtl8712_recv_c_                BIT(30)
 #define _module_rtl8712_led_c_         BIT(31)
 
-extern u32 GlobalDebugLevel;
-
 #endif /* __RTW_DEBUG_H__ */
index 950d70978856864c00b318ec039064d041728416..da372936a64c79b5d7faf9e80e17560c77ed121f 100644 (file)
@@ -140,8 +140,6 @@ static void loadparam(struct adapter *padapter)
 {
        struct registry_priv *registry_par = &padapter->registrypriv;
 
-       GlobalDebugLevel = rtw_debug;
-
        memcpy(registry_par->ssid.ssid, "ANY", 3);
        registry_par->ssid.ssid_length = 3;