summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwengjianfeng <wengjianfeng@yulong.com>2021-01-30 10:23:10 +0300
committerKalle Valo <kvalo@codeaurora.org>2021-02-08 14:16:35 +0300
commit199276b9bcefdffad776287de092160084caf677 (patch)
treec177790242045ce87ab0303747b8f636fe0c8ce0
parent1d5248882d64e327e70c0f15cadc4dfd9539c990 (diff)
downloadlinux-199276b9bcefdffad776287de092160084caf677.tar.xz
rtl8xxxu: remove unused assignment value
at first, ret was assigned to zero, but later assigned to a funciton,so the assignment to zero is no use, which can simple be removed instead. Signed-off-by: wengjianfeng <wengjianfeng@yulong.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/20210130072310.17252-1-samirweng1979@163.com
-rw-r--r--drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c
index 9f1f93d04145..cfe2dfdae928 100644
--- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c
+++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c
@@ -1507,8 +1507,6 @@ static int rtl8192eu_power_on(struct rtl8xxxu_priv *priv)
u32 val32;
int ret;
- ret = 0;
-
val32 = rtl8xxxu_read32(priv, REG_SYS_CFG);
if (val32 & SYS_CFG_SPS_LDO_SEL) {
rtl8xxxu_write8(priv, REG_LDO_SW_CTRL, 0xc3);