]> www.infradead.org Git - users/hch/misc.git/commitdiff
staging: rtl8723bs: remove bPseudoTest from Efuse_ReadAllMap
authorMichael Straube <straube.linux@gmail.com>
Sat, 23 Aug 2025 12:43:10 +0000 (14:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Sep 2025 13:54:56 +0000 (15:54 +0200)
The function Efuse_ReadAllMap is always called with bPseudoTest set to
false. Remove the pPseudoTest parameter and replace its usage in the
function with false to reduce code complexity.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20250823124321.485910-4-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_efuse.c

index 2c0dc55fb20eb27ee27dc9c035c66c374dd1f105..e865f83c09671cef6b41afd8c0cd94054746ccdf 100644 (file)
@@ -303,15 +303,15 @@ u8 efuse_OneByteWrite(struct adapter *padapter, u16 addr, u8 data, bool bPseudoT
  * 11/11/2008  MHC             Create Version 0.
  *
  */
-static void Efuse_ReadAllMap(struct adapter *padapter, u8 efuseType, u8 *Efuse, bool bPseudoTest)
+static void Efuse_ReadAllMap(struct adapter *padapter, u8 efuseType, u8 *Efuse)
 {
        u16 mapLen = 0;
 
        Efuse_PowerSwitch(padapter, false, true);
 
-       EFUSE_GetEfuseDefinition(padapter, efuseType, TYPE_EFUSE_MAP_LEN, (void *)&mapLen, bPseudoTest);
+       EFUSE_GetEfuseDefinition(padapter, efuseType, TYPE_EFUSE_MAP_LEN, (void *)&mapLen, false);
 
-       efuse_ReadEFuse(padapter, efuseType, 0, mapLen, Efuse, bPseudoTest);
+       efuse_ReadEFuse(padapter, efuseType, 0, mapLen, Efuse, false);
 
        Efuse_PowerSwitch(padapter, false, false);
 }
@@ -390,7 +390,7 @@ void EFUSE_ShadowMapUpdate(struct adapter *padapter, u8 efuseType)
        if (pEEPROM->bautoload_fail_flag)
                memset(pEEPROM->efuse_eeprom_data, 0xFF, mapLen);
        else
-               Efuse_ReadAllMap(padapter, efuseType, pEEPROM->efuse_eeprom_data, false);
+               Efuse_ReadAllMap(padapter, efuseType, pEEPROM->efuse_eeprom_data);
 
        /* PlatformMoveMemory((void *)&pHalData->EfuseMap[EFUSE_MODIFY_MAP][0], */
        /* void *)&pHalData->EfuseMap[EFUSE_INIT_MAP][0], mapLen); */