staging: r8188eu: bAPKThermalMeterIgnore is set but never used
authorMichael Straube <straube.linux@gmail.com>
Sat, 1 Jan 2022 08:49:34 +0000 (09:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Jan 2022 13:30:36 +0000 (14:30 +0100)
The field bAPKThermalMeterIgnore 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-5-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 065c2701077d3a113f6a713d8c3d5cfac6002939..cce291ca44b12401b3337a2874ced21facafbb76 100644 (file)
@@ -1230,9 +1230,8 @@ void Hal_ReadThermalMeter_88E(struct adapter *Adapter, u8 *PROMContent, bool Aut
        else
                pHalData->EEPROMThermalMeter = EEPROM_Default_ThermalMeter_88E;
 
-       if (pHalData->EEPROMThermalMeter == 0xff || AutoloadFail) {
-               pHalData->bAPKThermalMeterIgnore = true;
+       if (pHalData->EEPROMThermalMeter == 0xff || AutoloadFail)
                pHalData->EEPROMThermalMeter = EEPROM_Default_ThermalMeter_88E;
-       }
+
        DBG_88E("ThermalMeter = 0x%x\n", pHalData->EEPROMThermalMeter);
 }
index de58c85b8bdcb373ff05bfd55397f862e20115a5..40b3db34b8f20c74dc723eff958888406fd96219 100644 (file)
@@ -181,7 +181,6 @@ struct hal_data_8188e {
        u8      EEPROMRegulatory;
 
        u8      EEPROMThermalMeter;
-       u8      bAPKThermalMeterIgnore;
 
        bool    EepromOrEfuse;