|
|
56e3f4 |
From 903a4e9d1c1a8a1790fef08c63c0b173c087dfaa 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:02 +0100
|
|
|
56e3f4 |
Subject: [PATCH 06/36] rtw89: fix error function parameter
|
|
|
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 dea857700a75943017488b1d47f6687cfc037642
|
|
|
56e3f4 |
Author: Lv Ruyi <lv.ruyi@zte.com.cn>
|
|
|
56e3f4 |
Date: Thu Oct 21 04:20:35 2021 +0000
|
|
|
56e3f4 |
|
|
|
56e3f4 |
rtw89: fix error function parameter
|
|
|
56e3f4 |
|
|
|
56e3f4 |
This patch fixes the following Coccinelle warning:
|
|
|
56e3f4 |
drivers/net/wireless/realtek/rtw89/rtw8852a.c:753:
|
|
|
56e3f4 |
WARNING possible condition with no effect (if == else)
|
|
|
56e3f4 |
|
|
|
56e3f4 |
Reported-by: Zeal Robot <zealci@zte.com.cn>
|
|
|
56e3f4 |
Signed-off-by: Lv Ruyi <lv.ruyi@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/20211021042035.1042463-1-lv.ruyi@zte.com.cn
|
|
|
56e3f4 |
|
|
|
56e3f4 |
Signed-off-by: Íñigo Huguet <ihuguet@redhat.com>
|
|
|
56e3f4 |
---
|
|
|
56e3f4 |
drivers/net/wireless/realtek/rtw89/rtw8852a.c | 2 +-
|
|
|
56e3f4 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
56e3f4 |
|
|
|
56e3f4 |
diff --git a/drivers/net/wireless/realtek/rtw89/rtw8852a.c b/drivers/net/wireless/realtek/rtw89/rtw8852a.c
|
|
|
56e3f4 |
index b1b87f0aadbb..5c6ffca3a324 100644
|
|
|
56e3f4 |
--- a/drivers/net/wireless/realtek/rtw89/rtw8852a.c
|
|
|
56e3f4 |
+++ b/drivers/net/wireless/realtek/rtw89/rtw8852a.c
|
|
|
56e3f4 |
@@ -757,7 +757,7 @@ static void rtw8852a_ctrl_ch(struct rtw89_dev *rtwdev, u8 central_ch,
|
|
|
56e3f4 |
else
|
|
|
56e3f4 |
rtw89_phy_write32_idx(rtwdev, R_P1_MODE,
|
|
|
56e3f4 |
B_P1_MODE_SEL,
|
|
|
56e3f4 |
- 1, phy_idx);
|
|
|
56e3f4 |
+ 0, phy_idx);
|
|
|
56e3f4 |
/* SCO compensate FC setting */
|
|
|
56e3f4 |
sco_comp = rtw8852a_sco_mapping(central_ch);
|
|
|
56e3f4 |
rtw89_phy_write32_idx(rtwdev, R_FC0_BW, B_FC0_BW_INV,
|
|
|
56e3f4 |
--
|
|
|
56e3f4 |
2.13.6
|
|
|
56e3f4 |
|