]> www.infradead.org Git - users/hch/misc.git/commitdiff
staging: rtl8723bs: remove bPseudoTest from Hal_ReadEFuse
authorMichael Straube <straube.linux@gmail.com>
Sat, 23 Aug 2025 12:43:12 +0000 (14:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Sep 2025 13:54:57 +0000 (15:54 +0200)
The function Hal_ReadEFuse 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-6-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_efuse.c
drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c
drivers/staging/rtl8723bs/include/hal_intf.h

index 1079e2bc3287af6d14cee627095211e54387e413..388d885c938ff75ba4854371b0bf0a047c764928 100644 (file)
@@ -271,7 +271,7 @@ static void Efuse_ReadAllMap(struct adapter *padapter, u8 efuseType, u8 *Efuse)
 
        EFUSE_GetEfuseDefinition(padapter, efuseType, TYPE_EFUSE_MAP_LEN, (void *)&mapLen, false);
 
-       Hal_ReadEFuse(padapter, efuseType, 0, mapLen, Efuse, false);
+       Hal_ReadEFuse(padapter, efuseType, 0, mapLen, Efuse);
 
        Efuse_PowerSwitch(padapter, false, false);
 }
index 4a0423182f9e4b15b28d829307135d379e9acdc6..002648a8fd8134300fa3daff71f2b1878e6ee961 100644 (file)
@@ -883,14 +883,13 @@ void Hal_ReadEFuse(
        u8 efuseType,
        u16 _offset,
        u16 _size_byte,
-       u8 *pbuf,
-       bool bPseudoTest
+       u8 *pbuf
 )
 {
        if (efuseType == EFUSE_WIFI)
-               hal_ReadEFuse_WiFi(padapter, _offset, _size_byte, pbuf, bPseudoTest);
+               hal_ReadEFuse_WiFi(padapter, _offset, _size_byte, pbuf, false);
        else
-               hal_ReadEFuse_BT(padapter, _offset, _size_byte, pbuf, bPseudoTest);
+               hal_ReadEFuse_BT(padapter, _offset, _size_byte, pbuf, false);
 }
 
 static u16 hal_EfuseGetCurrentSize_WiFi(
index 67d51e55bd44be0b9d9cc4a07d3651ff5cf880bd..2e97a918445c77f9c2d7bd387597205ca67e97c6 100644 (file)
@@ -267,7 +267,7 @@ void UpdateHalRAMask8723B(struct adapter *padapter, u32 mac_id, u8 rssi_level);
 void rtl8723b_SetBeaconRelatedRegisters(struct adapter *padapter);
 void Hal_EfusePowerSwitch(struct adapter *padapter, u8 bWrite, u8 PwrState);
 void Hal_ReadEFuse(struct adapter *padapter, u8 efuseType, u16 _offset,
-                  u16 _size_byte, u8 *pbuf, bool bPseudoTest);
+                  u16 _size_byte, u8 *pbuf);
 void Hal_GetEfuseDefinition(struct adapter *padapter, u8 efuseType, u8 type,
                            void *pOut, bool bPseudoTest);
 u16 Hal_EfuseGetCurrentSize(struct adapter *padapter, u8 efuseType, bool bPseudoTest);