mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 08:02:27 +02:00
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>
This commit is contained in:
parent
4d170e2c0d
commit
4558ec57bf
|
|
@ -448,11 +448,9 @@ static u8 hal_EfuseSwitchToBank(
|
|||
struct adapter *padapter, u8 bank
|
||||
)
|
||||
{
|
||||
u8 bRet = false;
|
||||
u32 value32 = 0;
|
||||
u8 bRet = true;
|
||||
u32 value32 = rtw_read32(padapter, EFUSE_TEST);
|
||||
|
||||
value32 = rtw_read32(padapter, EFUSE_TEST);
|
||||
bRet = true;
|
||||
switch (bank) {
|
||||
case 0:
|
||||
value32 = (value32 & ~EFUSE_SEL_MASK) | EFUSE_SEL(EFUSE_WIFI_SEL_0);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user