staging: r8188eu: bTXPowerDataReadFromEEPORM is set but never used
authorMichael Straube <straube.linux@gmail.com>
Sat, 1 Jan 2022 08:49:33 +0000 (09:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Jan 2022 13:30:36 +0000 (14:30 +0100)
The field bTXPowerDataReadFromEEPORM of struct hal_data_8188e is set
but never used. Remove it.

Acked-by: Martin Kaiser <martin@kaiser.cx>
Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20220101084937.3411-4-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/rtl8188e_hal_init.c
drivers/staging/r8188eu/include/rtl8188e_hal.h

index d8d6547465a7e86e19c7cee305261c5277bf82df..065c2701077d3a113f6a713d8c3d5cfac6002939 100644 (file)
@@ -1127,9 +1127,6 @@ void Hal_ReadTxPowerInfo88E(struct adapter *padapter, u8 *PROMContent, bool Auto
 
        Hal_ReadPowerValueFromPROM_8188E(&pwrInfo24G, PROMContent, AutoLoadFail);
 
-       if (!AutoLoadFail)
-               pHalData->bTXPowerDataReadFromEEPORM = true;
-
        for (ch = 0; ch < CHANNEL_MAX_NUMBER; ch++) {
                hal_get_chnl_group_88e(ch, &group);
 
index 8b54f52f49e2b0ca5cb3528670815f943bed1a58..de58c85b8bdcb373ff05bfd55397f862e20115a5 100644 (file)
@@ -180,7 +180,6 @@ struct hal_data_8188e {
        u16     EEPROMSDID;
        u8      EEPROMRegulatory;
 
-       u8      bTXPowerDataReadFromEEPORM;
        u8      EEPROMThermalMeter;
        u8      bAPKThermalMeterIgnore;