Commit 15c389c1 authored by Mahati Chamarthy's avatar Mahati Chamarthy Committed by Greg Kroah-Hartman

Staging: rtl8723au: include: Remove unnecessary macro

This patch removes a macro which is not used anywhere except in the header
file. Existing usage in the header file is replaced with the actual value.
Signed-off-by: default avatarMahati Chamarthy <mahati.chamarthy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a724e4e3
...@@ -91,8 +91,7 @@ ...@@ -91,8 +91,7 @@
#define ODM_COMP_INIT BIT(31) #define ODM_COMP_INIT BIT(31)
/*------------------------Export Macro Definition---------------------------*/ /*------------------------Export Macro Definition---------------------------*/
#define DbgPrint printk #define RT_PRINTK(fmt, args...) printk("%s(): " fmt, __func__, ## args);
#define RT_PRINTK(fmt, args...) DbgPrint("%s(): " fmt, __func__, ## args);
#ifndef ASSERT #ifndef ASSERT
#define ASSERT(expr) #define ASSERT(expr)
...@@ -101,7 +100,7 @@ ...@@ -101,7 +100,7 @@
#define ODM_RT_TRACE(pDM_Odm, comp, level, fmt) \ #define ODM_RT_TRACE(pDM_Odm, comp, level, fmt) \
if(((comp) & pDM_Odm->DebugComponents) && (level <= pDM_Odm->DebugLevel)) \ if(((comp) & pDM_Odm->DebugComponents) && (level <= pDM_Odm->DebugLevel)) \
{ \ { \
DbgPrint("[ODM-8723A] "); \ printk("[ODM-8723A] "); \
RT_PRINTK fmt; \ RT_PRINTK fmt; \
} }
...@@ -113,25 +112,25 @@ ...@@ -113,25 +112,25 @@
#define ODM_RT_ASSERT(pDM_Odm, expr, fmt) \ #define ODM_RT_ASSERT(pDM_Odm, expr, fmt) \
if(!(expr)) { \ if(!(expr)) { \
DbgPrint("Assertion failed! %s at ......\n", #expr); \ printk("Assertion failed! %s at ......\n", #expr); \
DbgPrint(" ......%s,%s,line=%d\n", __FILE__, __func__, __LINE__);\ printk(" ......%s,%s,line=%d\n", __FILE__, __func__, __LINE__);\
RT_PRINTK fmt; \ RT_PRINTK fmt; \
ASSERT(false); \ ASSERT(false); \
} }
#define ODM_dbg_enter() { DbgPrint("==> %s\n", __func__); } #define ODM_dbg_enter() { printk("==> %s\n", __func__); }
#define ODM_dbg_exit() { DbgPrint("<== %s\n", __func__); } #define ODM_dbg_exit() { printk("<== %s\n", __func__); }
#define ODM_dbg_trace(str) { DbgPrint("%s:%s\n", __func__, str); } #define ODM_dbg_trace(str) { printk("%s:%s\n", __func__, str); }
#define ODM_PRINT_ADDR(pDM_Odm, comp, level, title_str, ptr) \ #define ODM_PRINT_ADDR(pDM_Odm, comp, level, title_str, ptr) \
if(((comp) & pDM_Odm->DebugComponents) && (level <= pDM_Odm->DebugLevel){ \ if(((comp) & pDM_Odm->DebugComponents) && (level <= pDM_Odm->DebugLevel){ \
int __i; \ int __i; \
u8 * __ptr = (u8 *)ptr; \ u8 * __ptr = (u8 *)ptr; \
DbgPrint("[ODM] "); \ printk("[ODM] "); \
DbgPrint(title_str); \ printk(title_str); \
DbgPrint(" "); \ printk(" "); \
for (__i=0; __i < 6; __i++) \ for (__i=0; __i < 6; __i++) \
DbgPrint("%02X%s", __ptr[__i], (__i == 5) ? "" : "-"); \ printk("%02X%s", __ptr[__i], (__i == 5) ? "" : "-"); \
DbgPrint("\n"); \ printk("\n"); \
} }
void ODM_InitDebugSetting23a(struct dm_odm_t *pDM_Odm); void ODM_InitDebugSetting23a(struct dm_odm_t *pDM_Odm);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment