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 19:40:00 -0500 |
commit | a1cfeeb22b55f5539c7b83e49b2bce1706e7f205 (patch) | |
tree | 6d3531e1372bb7513b6c8fbf6a6ee2616d8958d9 /drivers/staging | |
parent | 4a293154a940da8d8bd1cea2485b1c7620620a6e (diff) |
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) | |||
80 | 80 | ||
81 | static int _InitPowerOn(struct rtw_adapter *padapter) | 81 | static int _InitPowerOn(struct rtw_adapter *padapter) |
82 | { | 82 | { |
83 | int status = _SUCCESS; | 83 | u16 value16; |
84 | u16 value16 = 0; | 84 | u8 value8; |
85 | u8 value8 = 0; | ||
86 | 85 | ||
87 | /* RSV_CTRL 0x1C[7:0] = 0x00 | 86 | /* RSV_CTRL 0x1C[7:0] = 0x00 |
88 | unlock ISO/CLK/Power control register */ | 87 | unlock ISO/CLK/Power control register */ |
@@ -109,7 +108,7 @@ static int _InitPowerOn(struct rtw_adapter *padapter) | |||
109 | /* for Efuse PG, suggest by Jackie 2011.11.23 */ | 108 | /* for Efuse PG, suggest by Jackie 2011.11.23 */ |
110 | PHY_SetBBReg(padapter, REG_EFUSE_CTRL, BIT(28)|BIT(29)|BIT(30), 0x06); | 109 | PHY_SetBBReg(padapter, REG_EFUSE_CTRL, BIT(28)|BIT(29)|BIT(30), 0x06); |
111 | 110 | ||
112 | return status; | 111 | return _SUCCESS; |
113 | } | 112 | } |
114 | 113 | ||
115 | /* Shall USB interface init this? */ | 114 | /* Shall USB interface init this? */ |