[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20210129012019.11348-1-samirweng1979@163.com>
Date: Fri, 29 Jan 2021 09:20:19 +0800
From: samirweng1979 <samirweng1979@....com>
To: Jes.Sorensen@...il.com, kvalo@...eaurora.org, davem@...emloft.net,
kuba@...nel.org
Cc: linux-wireless@...r.kernel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org,
wengjianfeng <wengjianfeng@...ong.com>
Subject: [PATCH] rtl8xxxu: assign value when defining variables
From: wengjianfeng <wengjianfeng@...ong.com>
define ret and then assign value to it, which we should do one time.
Signed-off-by: wengjianfeng <wengjianfeng@...ong.com>
---
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c
index 9f1f93d..b2ee168 100644
--- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c
+++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c
@@ -1505,9 +1505,7 @@ static int rtl8192eu_power_on(struct rtl8xxxu_priv *priv)
{
u16 val16;
u32 val32;
- int ret;
-
- ret = 0;
+ int ret = 0;
val32 = rtl8xxxu_read32(priv, REG_SYS_CFG);
if (val32 & SYS_CFG_SPS_LDO_SEL) {
--
1.9.1
Powered by blists - more mailing lists