staging: r8188eu: clean up rtw_reset_8051()
authorMichael Straube <straube.linux@gmail.com>
Fri, 7 Jan 2022 10:36:12 +0000 (11:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jan 2022 15:13:44 +0000 (16:13 +0100)
Rename the local variable u1bTmp in rtw_reset_8051() to avoid camel
case and remove a call to DBG_88E that contains no important
information.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20220107103620.15648-12-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/rtl8188e_hal_init.c

index b1f2d34..d219882 100644 (file)
@@ -460,12 +460,11 @@ exit:
 
 void rtw_reset_8051(struct adapter *padapter)
 {
-       u8 u1bTmp;
+       u8 val8;
 
-       u1bTmp = rtw_read8(padapter, REG_SYS_FUNC_EN + 1);
-       rtw_write8(padapter, REG_SYS_FUNC_EN + 1, u1bTmp & (~BIT(2)));
-       rtw_write8(padapter, REG_SYS_FUNC_EN + 1, u1bTmp | (BIT(2)));
-       DBG_88E("=====> _8051Reset88E(): 8051 reset success .\n");
+       val8 = rtw_read8(padapter, REG_SYS_FUNC_EN + 1);
+       rtw_write8(padapter, REG_SYS_FUNC_EN + 1, val8 & (~BIT(2)));
+       rtw_write8(padapter, REG_SYS_FUNC_EN + 1, val8 | (BIT(2)));
 }
 
 static s32 fw_free_to_go(struct adapter *padapter)