staging: r8188eu: remove autoload check
authorMartin Kaiser <martin@kaiser.cx>
Thu, 11 Nov 2021 21:26:41 +0000 (22:26 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Nov 2021 09:02:04 +0000 (10:02 +0100)
In Hal_InitPGData88E, the same code is run, regardless of
bautoload_fail_flag.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20211111212644.9011-4-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/rtl8188e_hal_init.c

index 566b49f..019e67a 100644 (file)
@@ -1312,18 +1312,8 @@ s32 InitLLTTable(struct adapter *padapter, u8 txpktbuf_bndy)
 void
 Hal_InitPGData88E(struct adapter *padapter)
 {
-       struct eeprom_priv *pEEPROM = &padapter->eeprompriv;
-
-       if (!pEEPROM->bautoload_fail_flag) { /*  autoload OK. */
-               if (!is_boot_from_eeprom(padapter)) {
-                       /*  Read EFUSE real map to shadow. */
-                       EFUSE_ShadowMapUpdate(padapter, EFUSE_WIFI, false);
-               }
-       } else {/* autoload fail */
-               /* update to default value 0xFF */
-               if (!is_boot_from_eeprom(padapter))
-                       EFUSE_ShadowMapUpdate(padapter, EFUSE_WIFI, false);
-       }
+       if (!is_boot_from_eeprom(padapter))
+               EFUSE_ShadowMapUpdate(padapter, EFUSE_WIFI, false);
 }
 
 void