staging: rtl8723au: _DisableRFAFEAndResetBB8192C(): Reduce code obfuscation
authorJes Sorensen <Jes.Sorensen@redhat.com>
Sun, 30 Nov 2014 21:05:14 +0000 (16:05 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Dec 2014 00:40:01 +0000 (16:40 -0800)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c

index d2b4fb01d7f37e0a58935decaf2fab53e8cb4fd8..3aa20f68e9d52f8683f426a269d7c7f11060205b 100644 (file)
@@ -1253,18 +1253,17 @@ c.      APSD_CTRL 0x600[7:0] = 0x40
 d.     SYS_FUNC_EN 0x02[7:0] = 0x16            reset BB state machine
 e.     SYS_FUNC_EN 0x02[7:0] = 0x14            reset BB state machine
 ***************************************/
-       u8 value8 = 0;
+       u8 value8;
 
        rtl8723au_write8(padapter, REG_TXPAUSE, 0xFF);
 
        PHY_SetRFReg(padapter, RF_PATH_A, 0x0, bMaskByte0, 0x0);
 
-       value8 |= APSDOFF;
+       value8 = APSDOFF;
        rtl8723au_write8(padapter, REG_APSD_CTRL, value8);      /* 0x40 */
 
        /*  Set BB reset at first */
-       value8 = 0;
-       value8 |= (FEN_USBD | FEN_USBA | FEN_BB_GLB_RSTn);
+       value8 = FEN_USBD | FEN_USBA | FEN_BB_GLB_RSTn;
        rtl8723au_write8(padapter, REG_SYS_FUNC_EN, value8);    /* 0x16 */
 
        /*  Set global reset. */
This page took 0.028926 seconds and 5 git commands to generate.