From 198ffd276ff9ca4768e7174c7611e1f1b0e5e8a8 Mon Sep 17 00:00:00 2001 From: Fabio Aiuto Date: Sat, 24 Apr 2021 11:01:54 +0200 Subject: [PATCH] staging: rtl8723bs: remove unused debug variables declarations and initialization remove unused debug variables extern declarations and containing #ifndef block. remove initialization as well. Signed-off-by: Fabio Aiuto Link: https://lore.kernel.org/r/d566a6eb49949c1c80df286056b9df6114c8cc97.1619254603.git.fabioaiuto83@gmail.com Signed-off-by: Greg Kroah-Hartman --- drivers/staging/rtl8723bs/core/rtw_debug.c | 2 -- drivers/staging/rtl8723bs/include/rtw_debug.h | 5 ----- 2 files changed, 7 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_debug.c b/drivers/staging/rtl8723bs/core/rtw_debug.c index 642aa55..576b039 100644 --- a/drivers/staging/rtl8723bs/core/rtw_debug.c +++ b/drivers/staging/rtl8723bs/core/rtw_debug.c @@ -10,8 +10,6 @@ #include #include -u32 GlobalDebugLevel = _drv_err_; - #include static void dump_4_regs(struct adapter *adapter, int offset) diff --git a/drivers/staging/rtl8723bs/include/rtw_debug.h b/drivers/staging/rtl8723bs/include/rtw_debug.h index 2232a10..579724e 100644 --- a/drivers/staging/rtl8723bs/include/rtw_debug.h +++ b/drivers/staging/rtl8723bs/include/rtw_debug.h @@ -131,11 +131,6 @@ #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); -- 2.7.4