[PATCH] wifi: rtlwifi: fix repeated words in comments

Jilin Yuan posted 1 patch 3 years, 9 months ago
drivers/net/wireless/realtek/rtlwifi/core.c | 2 +-
drivers/net/wireless/realtek/rtlwifi/regd.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
[PATCH] wifi: rtlwifi: fix repeated words in comments
Posted by Jilin Yuan 3 years, 9 months ago
 Delete the redundant word 'in'.
 Delete the redundant word 'scan'.

Signed-off-by: Jilin Yuan <yuanjilin@cdjrlc.com>
---
 drivers/net/wireless/realtek/rtlwifi/core.c | 2 +-
 drivers/net/wireless/realtek/rtlwifi/regd.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/realtek/rtlwifi/core.c b/drivers/net/wireless/realtek/rtlwifi/core.c
index 99a1d91ced5a..a1cbedb346dd 100644
--- a/drivers/net/wireless/realtek/rtlwifi/core.c
+++ b/drivers/net/wireless/realtek/rtlwifi/core.c
@@ -671,7 +671,7 @@ static int rtl_op_config(struct ieee80211_hw *hw, u32 changed)
 
 		/*
 		 *because we should back channel to
-		 *current_network.chan in in scanning,
+		 *current_network.chan in scanning,
 		 *So if set_chan == current_network.chan
 		 *we should set it.
 		 *because mac80211 tell us wrong bw40
diff --git a/drivers/net/wireless/realtek/rtlwifi/regd.c b/drivers/net/wireless/realtek/rtlwifi/regd.c
index 4cf8face0bbd..0bc4afa4fda3 100644
--- a/drivers/net/wireless/realtek/rtlwifi/regd.c
+++ b/drivers/net/wireless/realtek/rtlwifi/regd.c
@@ -178,7 +178,7 @@ static void _rtl_reg_apply_beaconing_flags(struct wiphy *wiphy,
 	}
 }
 
-/* Allows active scan scan on Ch 12 and 13 */
+/* Allows active scan on Ch 12 and 13 */
 static void _rtl_reg_apply_active_scan_flags(struct wiphy *wiphy,
 					     enum nl80211_reg_initiator
 					     initiator)
-- 
2.36.1
Re: wifi: rtlwifi: fix repeated words in comments
Posted by Kalle Valo 3 years, 9 months ago
Jilin Yuan <yuanjilin@cdjrlc.com> wrote:

> Delete the redundant words 'in' and 'scan'.
> 
> Signed-off-by: Jilin Yuan <yuanjilin@cdjrlc.com>

Patch applied to wireless-next.git, thanks.

4a7fb1c67ef4 wifi: rtlwifi: fix repeated words in comments

-- 
https://patchwork.kernel.org/project/linux-wireless/patch/20220710042040.22456-1-yuanjilin@cdjrlc.com/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches