2022-07-09 14:34:01

by Jilin Yuan

[permalink] [raw]
Subject: [PATCH] wifi: api: fix repeated words in comments

Delete the redundant word 'the'.
Delete the redundant word 'to'.
Delete the redundant word 'be'.

Signed-off-by: Jilin Yuan <[email protected]>
---
drivers/net/wireless/intel/iwlwifi/fw/api/power.h | 2 +-
drivers/net/wireless/intel/iwlwifi/fw/api/time-event.h | 2 +-
drivers/net/wireless/intel/iwlwifi/fw/api/tx.h | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/net/wireless/intel/iwlwifi/fw/api/power.h b/drivers/net/wireless/intel/iwlwifi/fw/api/power.h
index f92cac1da764..d05a8e2fab30 100644
--- a/drivers/net/wireless/intel/iwlwifi/fw/api/power.h
+++ b/drivers/net/wireless/intel/iwlwifi/fw/api/power.h
@@ -575,7 +575,7 @@ struct iwl_sar_offset_mapping_cmd {
* regardless of whether its temerature has been changed.
* @bf_enable_beacon_filter: 1, beacon filtering is enabled; 0, disabled.
* @bf_debug_flag: beacon filtering debug configuration
- * @bf_escape_timer: Send beacons to to driver if no beacons were passed
+ * @bf_escape_timer: Send beacons to driver if no beacons were passed
* for a specific period of time. Units: Beacons.
* @ba_escape_timer: Fully receive and parse beacon if no beacons were passed
* for a longer period of time then this escape-timeout. Units: Beacons.
diff --git a/drivers/net/wireless/intel/iwlwifi/fw/api/time-event.h b/drivers/net/wireless/intel/iwlwifi/fw/api/time-event.h
index 904cd78a9fa0..019bf23ebffc 100644
--- a/drivers/net/wireless/intel/iwlwifi/fw/api/time-event.h
+++ b/drivers/net/wireless/intel/iwlwifi/fw/api/time-event.h
@@ -359,7 +359,7 @@ struct iwl_hs20_roc_res {
* listen mode. Will be fragmented. Valid only on the P2P Device MAC.
* Valid only on the P2P Device MAC. The firmware will take into account
* the duration, the interval and the repetition count.
- * @SESSION_PROTECT_CONF_P2P_GO_NEGOTIATION: Schedule the P2P Device to be be
+ * @SESSION_PROTECT_CONF_P2P_GO_NEGOTIATION: Schedule the P2P Device to be
* able to run the GO Negotiation. Will not be fragmented and not
* repetitive. Valid only on the P2P Device MAC. Only the duration will
* be taken into account.
diff --git a/drivers/net/wireless/intel/iwlwifi/fw/api/tx.h b/drivers/net/wireless/intel/iwlwifi/fw/api/tx.h
index ecc6706f66ed..194de9545989 100644
--- a/drivers/net/wireless/intel/iwlwifi/fw/api/tx.h
+++ b/drivers/net/wireless/intel/iwlwifi/fw/api/tx.h
@@ -200,7 +200,7 @@ enum iwl_tx_offload_assist_bz {
* cleared. Combination of RATE_MCS_*
* @sta_id: index of destination station in FW station table
* @sec_ctl: security control, TX_CMD_SEC_*
- * @initial_rate_index: index into the the rate table for initial TX attempt.
+ * @initial_rate_index: index into the rate table for initial TX attempt.
* Applied if TX_CMD_FLG_STA_RATE_MSK is set, normally 0 for data frames.
* @reserved2: reserved
* @key: security key
@@ -858,7 +858,7 @@ struct iwl_extended_beacon_notif {

/**
* enum iwl_dump_control - dump (flush) control flags
- * @DUMP_TX_FIFO_FLUSH: Dump MSDUs until the the FIFO is empty
+ * @DUMP_TX_FIFO_FLUSH: Dump MSDUs until the FIFO is empty
* and the TFD queues are empty.
*/
enum iwl_dump_control {
--
2.36.1


2022-07-09 16:53:51

by Joe Perches

[permalink] [raw]
Subject: Re: [PATCH] wifi: api: fix repeated words in comments

On Sat, 2022-07-09 at 22:03 +0800, Jilin Yuan wrote:
> Delete the redundant word 'the'.
> Delete the redundant word 'to'.
> Delete the redundant word 'be'.
[]
> diff --git a/drivers/net/wireless/intel/iwlwifi/fw/api/power.h b/drivers/net/wireless/intel/iwlwifi/fw/api/power.h
[]
> @@ -575,7 +575,7 @@ struct iwl_sar_offset_mapping_cmd {
> * regardless of whether its temerature has been changed.
> * @bf_enable_beacon_filter: 1, beacon filtering is enabled; 0, disabled.
> * @bf_debug_flag: beacon filtering debug configuration
> - * @bf_escape_timer: Send beacons to to driver if no beacons were passed
> + * @bf_escape_timer: Send beacons to driver if no beacons were passed

to the