staging: r8188eu: remove write-only fields from struct dm_priv
authorMichael Straube <straube.linux@gmail.com>
Tue, 21 Sep 2021 19:46:54 +0000 (21:46 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Sep 2021 15:31:00 +0000 (17:31 +0200)
The fields bDynamicTxPowerEnable and LastDTPLvl of struct dm_priv
are set but never used. Remove them.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20210921194658.10654-5-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/odm.c
drivers/staging/r8188eu/include/rtl8188e_dm.h

index c691a6a90fa9bff99d900602323a4209f8d157c4..555060bdfdd97df4009d79a1bfc77843d54a7335 100644 (file)
@@ -1183,8 +1183,6 @@ 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->bDynamicTxPowerEnable = false;
-       pdmpriv->LastDTPLvl = TxHighPwrLevel_Normal;
        pdmpriv->DynamicTxHighPowerLvl = TxHighPwrLevel_Normal;
 }
 
index 3ead20b321a9c42b054a80e730eb942201ffef0c..2209975c0b2de9563d7bef8d05b4038ff3d99724 100644 (file)
@@ -29,8 +29,6 @@ struct        dm_priv {
        int     LastMinUndecoratedPWDBForDM;
 
        /* for High Power */
-       u8 bDynamicTxPowerEnable;
-       u8 LastDTPLvl;
        u8 DynamicTxHighPowerLvl;/* Tx Power Control for Near/Far Range */
        u8      PowerIndex_backup[6];
 };