diff options
author | Jes Sorensen <Jes.Sorensen@redhat.com> | 2014-11-30 21:05:01 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-12-03 00:40:00 (GMT) |
commit | a1cfeeb22b55f5539c7b83e49b2bce1706e7f205 (patch) | |
tree | 6d3531e1372bb7513b6c8fbf6a6ee2616d8958d9 /drivers/staging | |
parent | 4a293154a940da8d8bd1cea2485b1c7620620a6e (diff) | |
download | linux-a1cfeeb22b55f5539c7b83e49b2bce1706e7f205.tar.xz |
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 b8d5040..3b09dc2 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? */ |