staging: rtl8723bs: remove redundant chip version wrapper
PATCH v2 2/2 staging: rtl8723bs: remove redundant chip version wrapper
Remove the redundant internal helper __rtl8723b_read_chip_version() by merging its body directly into rtl8723b_read_chip_version().
This eliminates unnecessary functional overhead and simplifies the hardware initialization code path.
Signed-off-by Arsenii Pashchenko <[email protected]>
--- drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c +1 -5
@@ -820,7 +820,7 @@ void Hal_ReadEFuse(hal_ReadEFuse_BT (padapter, _offset, _size_byte, pbuf); } -static void __rtl8723b_read_chip_version (struct adapter *padapter) +void rtl8723b_read_chip_version (struct adapter *padapter) {u32 value32;struct hal_com_data *pHalData;
@@ -843,10 +843,6 @@ static void __rtl8723b_read_chip_version(struct adapter *padapter) pHalData->PolarityCtl = ((value32 &WL_HWPDN_SL ) ?RT_POLARITY_HIGH_ACT :RT_POLARITY_LOW_ACT ); } -void rtl8723b_read_chip_version (struct adapter *padapter) -{ -__rtl8723b_read_chip_version (padapter); -}void rtl8723b_InitBeaconParameters (struct adapter *padapter) {
Signature · 1 line
2.55.0