[PATCH 9/9] staging: rtl8192e: Remove unused variable DM_Type

From: Philipp Hortmann
Date: Wed Jan 18 2023 - 15:00:46 EST


DM_Type is initialized and then never evaluated. Remove resulting dead
code.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@xxxxxxxxx>
---
drivers/staging/rtl8192e/rtl8192e/rtl_core.h | 2 --
drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 2 --
drivers/staging/rtl8192e/rtl8192e/rtl_dm.h | 2 --
3 files changed, 6 deletions(-)

diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.h b/drivers/staging/rtl8192e/rtl8192e/rtl_core.h
index 6662558e56fa..11f3f88491b2 100644
--- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.h
+++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.h
@@ -457,8 +457,6 @@ struct r8192_priv {
bool set_rf_pwr_state_in_progress;
bool bdisable_nic;

- u8 DM_Type;
-
u8 cck_pwr_enl;
u16 tssi_13dBm;
u32 pwr_track;
diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c
index cb55b6645674..ba92dab682ec 100644
--- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c
+++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c
@@ -203,8 +203,6 @@ void rtl92e_dm_init(struct net_device *dev)
{
struct r8192_priv *priv = rtllib_priv(dev);

- priv->DM_Type = DM_Type_ByDriver;
-
priv->undecorated_smoothed_pwdb = -1;

_rtl92e_dm_init_dynamic_tx_power(dev);
diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.h b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.h
index 1d4d7d98a859..65d077dfee37 100644
--- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.h
+++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.h
@@ -47,8 +47,6 @@
#define TX_RETRY_COUNT_REG 0x1ac
#define RegC38_TH 20

-#define DM_Type_ByDriver 1
-
/*--------------------------Define Parameters-------------------------------*/


--
2.39.0