Skip to content

Commit 4558ec5

Browse files
mistraubegregkh
authored andcommitted
staging: rtl8723bs: clean up variable initializations
After previous cleanup patches the variable initializations in hal_EfuseSwitchToBank are messed up a little, but were left as-is to make reviewing easier. For example bRet is initialized to false and immediately set to true. This patch cleans up the variable initializations. Signed-off-by: Michael Straube <straube.linux@gmail.com> Link: https://lore.kernel.org/r/20250823124321.485910-13-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 4d170e2 commit 4558ec5

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -448,11 +448,9 @@ static u8 hal_EfuseSwitchToBank(
448448
struct adapter *padapter, u8 bank
449449
)
450450
{
451-
u8 bRet = false;
452-
u32 value32 = 0;
451+
u8 bRet = true;
452+
u32 value32 = rtw_read32(padapter, EFUSE_TEST);
453453

454-
value32 = rtw_read32(padapter, EFUSE_TEST);
455-
bRet = true;
456454
switch (bank) {
457455
case 0:
458456
value32 = (value32 & ~EFUSE_SEL_MASK) | EFUSE_SEL(EFUSE_WIFI_SEL_0);

0 commit comments

Comments
 (0)