From 631333e487ec1a0606e9e071450a892e98a1eb1a Mon Sep 17 00:00:00 2001 From: Michael Straube Date: Tue, 21 Sep 2021 21:46:57 +0200 Subject: [PATCH] staging: r8188eu: remove DynamicTxHighPowerLvl from struct dm_priv The field DynamicTxHighPowerLvl of struct dm_priv is set but never used. Remove it and remove now unused variables from odm_DynamicTxPowerInit(). Signed-off-by: Michael Straube Link: https://lore.kernel.org/r/20210921194658.10654-8-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman --- drivers/staging/r8188eu/hal/odm.c | 4 ---- drivers/staging/r8188eu/include/rtl8188e_dm.h | 3 --- 2 files changed, 7 deletions(-) diff --git a/drivers/staging/r8188eu/hal/odm.c b/drivers/staging/r8188eu/hal/odm.c index 555060bdfdd9..87f0ea84819a 100644 --- a/drivers/staging/r8188eu/hal/odm.c +++ b/drivers/staging/r8188eu/hal/odm.c @@ -1180,10 +1180,6 @@ bool ODM_RAStateCheck(struct odm_dm_struct *pDM_Odm, s32 RSSI, bool bForceUpdate void odm_DynamicTxPowerInit(struct odm_dm_struct *pDM_Odm) { - struct adapter *Adapter = pDM_Odm->Adapter; - struct hal_data_8188e *pHalData = GET_HAL_DATA(Adapter); - struct dm_priv *pdmpriv = &pHalData->dmpriv; - pdmpriv->DynamicTxHighPowerLvl = TxHighPwrLevel_Normal; } /* 3============================================================ */ diff --git a/drivers/staging/r8188eu/include/rtl8188e_dm.h b/drivers/staging/r8188eu/include/rtl8188e_dm.h index bfe300730c16..a4399b119a74 100644 --- a/drivers/staging/r8188eu/include/rtl8188e_dm.h +++ b/drivers/staging/r8188eu/include/rtl8188e_dm.h @@ -27,9 +27,6 @@ struct dm_priv { int EntryMaxUndecoratedSmoothedPWDB; int MinUndecoratedPWDBForDM; int LastMinUndecoratedPWDBForDM; - - /* for High Power */ - u8 DynamicTxHighPowerLvl;/* Tx Power Control for Near/Far Range */ }; void rtl8188e_init_dm_priv(struct adapter *adapt);