|
|
56e3f4 |
From 05f245f4d2fa4441a1cdf959dcb7c935a6274018 Mon Sep 17 00:00:00 2001
|
|
|
56e3f4 |
From: =?UTF-8?q?=C3=8D=C3=B1igo=20Huguet?= <ihuguet@redhat.com>
|
|
|
56e3f4 |
Date: Fri, 21 Jan 2022 08:49:03 +0100
|
|
|
56e3f4 |
Subject: [PATCH 16/36] rtw89: remove unneeded variable
|
|
|
56e3f4 |
MIME-Version: 1.0
|
|
|
56e3f4 |
Content-Type: text/plain; charset=UTF-8
|
|
|
56e3f4 |
Content-Transfer-Encoding: 8bit
|
|
|
56e3f4 |
|
|
|
56e3f4 |
Bugzilla: http://bugzilla.redhat.com/2033291
|
|
|
56e3f4 |
|
|
|
56e3f4 |
commit 43863efeada6eda380bd08537d1e4719341dc50d
|
|
|
56e3f4 |
Author: Changcheng Deng <deng.changcheng@zte.com.cn>
|
|
|
56e3f4 |
Date: Wed Nov 10 12:11:35 2021 +0000
|
|
|
56e3f4 |
|
|
|
56e3f4 |
rtw89: remove unneeded variable
|
|
|
56e3f4 |
|
|
|
56e3f4 |
Fix the following coccicheck review:
|
|
|
56e3f4 |
./drivers/net/wireless/realtek/rtw89/mac.c: 1096: 5-8: Unneeded variable
|
|
|
56e3f4 |
|
|
|
56e3f4 |
Remove unneeded variable used to store return value.
|
|
|
56e3f4 |
|
|
|
56e3f4 |
Reported-by: Zeal Robot <zealci@zte.com.cn>
|
|
|
56e3f4 |
Signed-off-by: Changcheng Deng <deng.changcheng@zte.com.cn>
|
|
|
56e3f4 |
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
|
|
|
56e3f4 |
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
|
|
|
56e3f4 |
Link: https://lore.kernel.org/r/20211110121135.151187-1-deng.changcheng@zte.com.cn
|
|
|
56e3f4 |
|
|
|
56e3f4 |
Signed-off-by: Íñigo Huguet <ihuguet@redhat.com>
|
|
|
56e3f4 |
---
|
|
|
56e3f4 |
drivers/net/wireless/realtek/rtw89/mac.c | 3 +--
|
|
|
56e3f4 |
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
56e3f4 |
|
|
|
56e3f4 |
diff --git a/drivers/net/wireless/realtek/rtw89/mac.c b/drivers/net/wireless/realtek/rtw89/mac.c
|
|
|
56e3f4 |
index 944c23293cb9..f8389e849c67 100644
|
|
|
56e3f4 |
--- a/drivers/net/wireless/realtek/rtw89/mac.c
|
|
|
56e3f4 |
+++ b/drivers/net/wireless/realtek/rtw89/mac.c
|
|
|
56e3f4 |
@@ -1093,7 +1093,6 @@ static int cmac_func_en(struct rtw89_dev *rtwdev, u8 mac_idx, bool en)
|
|
|
56e3f4 |
static int dmac_func_en(struct rtw89_dev *rtwdev)
|
|
|
56e3f4 |
{
|
|
|
56e3f4 |
u32 val32;
|
|
|
56e3f4 |
- u32 ret = 0;
|
|
|
56e3f4 |
|
|
|
56e3f4 |
val32 = (B_AX_MAC_FUNC_EN | B_AX_DMAC_FUNC_EN | B_AX_MAC_SEC_EN |
|
|
|
56e3f4 |
B_AX_DISPATCHER_EN | B_AX_DLE_CPUIO_EN | B_AX_PKT_IN_EN |
|
|
|
56e3f4 |
@@ -1107,7 +1106,7 @@ static int dmac_func_en(struct rtw89_dev *rtwdev)
|
|
|
56e3f4 |
B_AX_WD_RLS_CLK_EN);
|
|
|
56e3f4 |
rtw89_write32(rtwdev, R_AX_DMAC_CLK_EN, val32);
|
|
|
56e3f4 |
|
|
|
56e3f4 |
- return ret;
|
|
|
56e3f4 |
+ return 0;
|
|
|
56e3f4 |
}
|
|
|
56e3f4 |
|
|
|
56e3f4 |
static int chip_func_en(struct rtw89_dev *rtwdev)
|
|
|
56e3f4 |
--
|
|
|
56e3f4 |
2.13.6
|
|
|
56e3f4 |
|