staging: rtl8723bs: remove unused debug variables declarations and initialization
authorFabio Aiuto <fabioaiuto83@gmail.com>
Sat, 24 Apr 2021 09:01:54 +0000 (11:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 May 2021 09:19:29 +0000 (11:19 +0200)
remove unused debug variables extern declarations
and containing #ifndef block.

remove initialization as well.

Signed-off-by: Fabio Aiuto <fabioaiuto83@gmail.com>
Link: https://lore.kernel.org/r/d566a6eb49949c1c80df286056b9df6114c8cc97.1619254603.git.fabioaiuto83@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_debug.c
drivers/staging/rtl8723bs/include/rtw_debug.h

index 642aa556c462adb193806532df2dc3ab95af959d..576b039f741cc50bcae4f1fc079e4c0190032fc6 100644 (file)
@@ -10,8 +10,6 @@
 #include <rtw_debug.h>
 #include <hal_btcoex.h>
 
-u32 GlobalDebugLevel = _drv_err_;
-
 #include <rtw_version.h>
 
 static void dump_4_regs(struct adapter *adapter, int offset)
index 2232a1014528e4777b48179fb61268940961f919..579724e8fc2f861cb6f99340287427ed8b1b1ce4 100644 (file)
        #define _MODULE_DEFINE_ _module_efuse_
 #endif
 
-#ifndef _RTL871X_DEBUG_C_
-       extern u32 GlobalDebugLevel;
-       extern u64 GlobalDebugComponents;
-#endif
-
 #define DRIVER_PREFIX "RTL8723BS: "
 
 void mac_reg_dump(struct adapter *adapter);