staging: r8188eu: CurrentOfdm24GTxPwrIdx is set but not used
authorMartin Kaiser <martin@kaiser.cx>
Sat, 8 Jan 2022 12:49:55 +0000 (13:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jan 2022 15:18:14 +0000 (16:18 +0100)
CurrentOfdm24GTxPwrIdx in struct hal_data_8188e is set but not used.
It can be removed.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220108124959.313215-9-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/rtl8188e_phycfg.c
drivers/staging/r8188eu/include/rtl8188e_hal.h

index 24b5604afbc9f159ea1b94bc7dc06b8bc8c83bec..a80f40fccf09e311a272b9bec0f0a109b22466be 100644 (file)
@@ -587,7 +587,6 @@ static void phy_PowerIndexCheck88E(struct adapter *Adapter, u8 channel, u8 *cckP
        struct hal_data_8188e *pHalData = &Adapter->haldata;
 
        pHalData->CurrentCckTxPwrIdx = cckPowerLevel[0];
-       pHalData->CurrentOfdm24GTxPwrIdx = ofdmPowerLevel[0];
 }
 
 /*-----------------------------------------------------------------------------
index 0c7f5e078bed5d2c2345dd051012f85f558c5a2a..fd2ee1739f884c618d08fbf82a2d8f815a2a0b5d 100644 (file)
@@ -178,7 +178,6 @@ struct hal_data_8188e {
 
        /*  The current Tx Power Level */
        u8      CurrentCckTxPwrIdx;
-       u8      CurrentOfdm24GTxPwrIdx;
 
        /*  Read/write are allow for following hardware information variables */
        u8      pwrGroupCnt;