diff options
author | Michael Straube <straube.linux@gmail.com> | 2022-01-01 09:49:34 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-01-03 14:30:36 +0100 |
commit | cfd060fe2edb8b752f99af249097a2c701101102 (patch) | |
tree | d993513743b855b500b5bd80be70ed07d98461e5 /drivers/staging | |
parent | a056e41a0928cd7382ff644575c90eba586ff952 (diff) | |
download | linux-stable-cfd060fe2edb8b752f99af249097a2c701101102.tar.gz linux-stable-cfd060fe2edb8b752f99af249097a2c701101102.tar.bz2 linux-stable-cfd060fe2edb8b752f99af249097a2c701101102.zip |
staging: r8188eu: bAPKThermalMeterIgnore is set but never used
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/r8188eu/hal/rtl8188e_hal_init.c | 5 | ||||
-rw-r--r-- | drivers/staging/r8188eu/include/rtl8188e_hal.h | 1 |
2 files changed, 2 insertions, 4 deletions
diff --git a/drivers/staging/r8188eu/hal/rtl8188e_hal_init.c b/drivers/staging/r8188eu/hal/rtl8188e_hal_init.c index 065c2701077d..cce291ca44b1 100644 --- a/drivers/staging/r8188eu/hal/rtl8188e_hal_init.c +++ b/drivers/staging/r8188eu/hal/rtl8188e_hal_init.c @@ -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); } diff --git a/drivers/staging/r8188eu/include/rtl8188e_hal.h b/drivers/staging/r8188eu/include/rtl8188e_hal.h index de58c85b8bdc..40b3db34b8f2 100644 --- a/drivers/staging/r8188eu/include/rtl8188e_hal.h +++ b/drivers/staging/r8188eu/include/rtl8188e_hal.h @@ -181,7 +181,6 @@ struct hal_data_8188e { u8 EEPROMRegulatory; u8 EEPROMThermalMeter; - u8 bAPKThermalMeterIgnore; bool EepromOrEfuse; |