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

From: Yogesh Hegde
Date: Wed Jun 07 2023 - 11:03:25 EST


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@xxxxxxxxx>
---

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

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 */
--
2.25.1