[v2,5/5] staging: rtl8192e: Remove DRV_NAME definition in rtllib_debug.h

Message ID 41c6c24e703eedf6fb4febcf4cc7ef180af1db58.1686149467.git.yogi.kernel@gmail.com
State New
Headers
Series Trivial code cleanup patches |

Commit Message

Yogesh Hegde June 7, 2023, 3:03 p.m. UTC
  The macro DRV_NAME is defined twice within the driver, once in
"rtl_core.h" and again in "rtllib_debug.h". The definition in
"rtllib_debug.h" overrides the definition in "rtl_core.h", resulting in
warnings during compilation. This patch removes the redundant definition in
"rtllib_debug.h" to avoid the warnings.

Signed-off-by: Yogesh Hegde <yogi.kernel@gmail.com>
---

v2: No changes.
---
 drivers/staging/rtl8192e/rtllib_debug.h | 5 -----
 1 file changed, 5 deletions(-)
  

Patch

diff --git a/drivers/staging/rtl8192e/rtllib_debug.h b/drivers/staging/rtl8192e/rtllib_debug.h
index f6b23defe225..ab8bd5fc4ca0 100644
--- a/drivers/staging/rtl8192e/rtllib_debug.h
+++ b/drivers/staging/rtl8192e/rtllib_debug.h
@@ -9,11 +9,6 @@ 
 
 #include <linux/bits.h>
 
-/* Allow files to override DRV_NAME */
-#ifndef DRV_NAME
-#define DRV_NAME "rtllib_92e"
-#endif
-
 extern u32 rt_global_debug_component;
 
 /* These are the defines for rt_global_debug_component */