diff options
author | Jes Sorensen <Jes.Sorensen@redhat.com> | 2014-11-30 16:05:01 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-12-02 16:40:00 -0800 |
commit | a1cfeeb22b55f5539c7b83e49b2bce1706e7f205 (patch) | |
tree | 6d3531e1372bb7513b6c8fbf6a6ee2616d8958d9 /drivers/staging | |
parent | 4a293154a940da8d8bd1cea2485b1c7620620a6e (diff) | |
download | linux-a1cfeeb22b55f5539c7b83e49b2bce1706e7f205.tar.gz linux-a1cfeeb22b55f5539c7b83e49b2bce1706e7f205.tar.bz2 linux-a1cfeeb22b55f5539c7b83e49b2bce1706e7f205.zip |
staging: rtl8723au: _InitPowerOn(): Don't zero init variables unnecessarily
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/rtl8723au/hal/usb_halinit.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/staging/rtl8723au/hal/usb_halinit.c b/drivers/staging/rtl8723au/hal/usb_halinit.c index b8d5040798f4..3b09dc2d5bbc 100644 --- a/drivers/staging/rtl8723au/hal/usb_halinit.c +++ b/drivers/staging/rtl8723au/hal/usb_halinit.c @@ -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? */ |