diff mbox series

[v1] drivers: mvm: remove duplicate assignments

Message ID 20230705063421.9827-1-duminjie@vivo.com (mailing list archive)
State Superseded
Delegated to: Johannes Berg
Headers show
Series [v1] drivers: mvm: remove duplicate assignments | expand

Commit Message

Minjie Du July 5, 2023, 6:34 a.m. UTC
make link_sta->agg.max_amsdu_len avoid double assignment.

Signed-off-by: Minjie Du <duminjie@vivo.com>
---
 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Kalle Valo July 20, 2023, 6:32 a.m. UTC | #1
Minjie Du <duminjie@vivo.com> writes:

> make link_sta->agg.max_amsdu_len avoid double assignment.
>
> Signed-off-by: Minjie Du <duminjie@vivo.com>
> ---
>  drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c | 1 -
>  1 file changed, 1 deletion(-)

The title should be:

wifi: iwlwifi: mvm: remove duplicate assignments
diff mbox series

Patch

diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c b/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
index cf27f106d..7f48457a9 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
@@ -455,7 +455,6 @@  static ssize_t iwl_dbgfs_amsdu_len_write(struct ieee80211_link_sta *link_sta,
 	if (amsdu_len) {
 		mvm_link_sta->orig_amsdu_len = link_sta->agg.max_amsdu_len;
 		link_sta->agg.max_amsdu_len = amsdu_len;
-		link_sta->agg.max_amsdu_len = amsdu_len;
 		for (i = 0; i < ARRAY_SIZE(link_sta->agg.max_tid_amsdu_len); i++)
 			link_sta->agg.max_tid_amsdu_len[i] = amsdu_len;
 	} else {