staging: rtl8723au: _InitPowerOn(): Don't zero init variables unnecessarily
authorJes Sorensen <Jes.Sorensen@redhat.com>
Sun, 30 Nov 2014 21:05:01 +0000 (16:05 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Dec 2014 00:40:00 +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/usb_halinit.c

index b8d5040798f4b3e27fe4ac6bcd7e67c1bc8b343a..3b09dc2d5bbce4e997530070a592616efda72654 100644 (file)
@@ -80,9 +80,8 @@ bool rtl8723au_chip_configure(struct rtw_adapter *padapter)
 
 static int _InitPowerOn(struct rtw_adapter *padapter)
 {
-       int status = _SUCCESS;
-       u16 value16 = 0;
-       u8 value8 = 0;
+       u16 value16;
+       u8 value8;
 
        /*  RSV_CTRL 0x1C[7:0] = 0x00
            unlock ISO/CLK/Power control register */
@@ -109,7 +108,7 @@ static int _InitPowerOn(struct rtw_adapter *padapter)
        /* for Efuse PG, suggest by Jackie 2011.11.23 */
        PHY_SetBBReg(padapter, REG_EFUSE_CTRL, BIT(28)|BIT(29)|BIT(30), 0x06);
 
-       return status;
+       return _SUCCESS;
 }
 
 /*  Shall USB interface init this? */
This page took 0.041429 seconds and 5 git commands to generate.