staging: rtl8723bs: remove unused ODM_PRINT_ADDR macro
authorFabio Aiuto <fabioaiuto83@gmail.com>
Fri, 30 Apr 2021 14:56:33 +0000 (16:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 May 2021 09:19:36 +0000 (11:19 +0200)
remove unused ODM_PRINT_ADDR macro definitions.

Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Fabio Aiuto <fabioaiuto83@gmail.com>
Link: https://lore.kernel.org/r/8f04c3b8b841efc4271d4a7ef71a95e04894d64a.1619794331.git.fabioaiuto83@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/odm_debug.h

index b4fc247..58de4d1 100644 (file)
 
 #if DBG
 #define ODM_dbg_trace(str) { DbgPrint("%s:%s\n", __func__, str); }
-
-#define ODM_PRINT_ADDR(pDM_Odm, comp, level, title_str, ptr)\
-       do {\
-               if (\
-                       (comp & pDM_Odm->DebugComponents) &&\
-                       (level <= pDM_Odm->DebugLevel)\
-               ) {\
-                       int __i;\
-                       u8 *__ptr = (u8 *)ptr;\
-                       DbgPrint("[ODM] ");\
-                       DbgPrint(title_str);\
-                       DbgPrint(" ");\
-                       for (__i = 0; __i < 6; __i++)\
-                               DbgPrint("%02X%s", __ptr[__i], (__i == 5) ? "" : "-");\
-                       DbgPrint("\n");\
-               } \
-       } while (0)
 #else
 #define ODM_dbg_enter()                                        do {} while (0)
 #define ODM_dbg_exit()                                 do {} while (0)
 #define ODM_dbg_trace(str)                             no_printk("%s", str)
-#define ODM_PRINT_ADDR(pDM_Odm, comp, level, title_str, ptr) \
-       no_printk("%s %p", title_str, ptr)
 #endif
 
 void ODM_InitDebugSetting(struct dm_odm_t *pDM_Odm);