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