Skip to contentSkip to conversation

staging: r8188eu: remove unused macro READ_AND_CONFIG_TC

PATCH In review Michael Straube 2 participants 2 messages Sep 9, 2021 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: r8188eu: remove unused macro READ_AND_CONFIG_TC

The macro READ_AND_CONFIG_TC is not used, remove it. Found with GCC -Wunused-macros.

---
 drivers/staging/r8188eu/hal/odm_HWConfig.c | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/r8188eu/hal/odm_HWConfig.c +0 -1
index ada22a526fee..058d04f6aa58 100644
@@ -6,7 +6,6 @@
 #define READ_AND_CONFIG     READ_AND_CONFIG_MP
 
 #define READ_AND_CONFIG_MP(ic, txt) (ODM_ReadAndConfig##txt##ic(dm_odm))
-#define READ_AND_CONFIG_TC(ic, txt) (ODM_ReadAndConfig_TC##txt##ic(dm_odm))
 
 static u8 odm_QueryRxPwrPercentage(s8 AntPower)
 {
Signature · 1 line
2.33.0
Acked-by on v1 1/1
#1 lore raw

Thus wrote Michael Straube ([email protected]):

Quoted 22 lines

The macro READ_AND_CONFIG_TC is not used, remove it. Found with GCC -Wunused-macros.

---
 drivers/staging/r8188eu/hal/odm_HWConfig.c | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/r8188eu/hal/odm_HWConfig.c +0 -1
index ada22a526fee..058d04f6aa58 100644
@@ -6,7 +6,6 @@
 #define READ_AND_CONFIG     READ_AND_CONFIG_MP
 
 #define READ_AND_CONFIG_MP(ic, txt) (ODM_ReadAndConfig##txt##ic(dm_odm))
-#define READ_AND_CONFIG_TC(ic, txt) (ODM_ReadAndConfig_TC##txt##ic(dm_odm))
 
 static u8 odm_QueryRxPwrPercentage(s8 AntPower)
 {
Signature · 1 line
2.33.0

looks good and compiles for me