]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: iwlwifi: mvm: remove unneeded argument
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Wed, 9 Jul 2025 05:16:32 +0000 (08:16 +0300)
committerMiri Korenblit <miriam.rachel.korenblit@intel.com>
Wed, 9 Jul 2025 08:43:16 +0000 (11:43 +0300)
iwl_mvm_set_key_rx_seq is called only once when the installed argument
is false. Remove this argument.

Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250709081300.2586112afd70.Iddf9a2b24546cb3a1506d68ca41ed215f88cff5c@changeid
drivers/net/wireless/intel/iwlwifi/mvm/d3.c

index 1af9e54a882d53a09cbe88d7434935eb6c03fd3c..7f0b2089ab8eff1caabd14309d8e9586740adeb2 100644 (file)
@@ -1787,8 +1787,7 @@ static void iwl_mvm_set_key_rx_seq_idx(struct ieee80211_key_conf *key,
 }
 
 static void iwl_mvm_set_key_rx_seq(struct ieee80211_key_conf *key,
-                                  struct iwl_wowlan_status_data *status,
-                                  bool installed)
+                                  struct iwl_wowlan_status_data *status)
 {
        int i;
 
@@ -1812,7 +1811,7 @@ static void iwl_mvm_set_key_rx_seq(struct ieee80211_key_conf *key,
 
                /* handle the case where we didn't, last key only */
                if (status->gtk_seq[i].key_id == -1 &&
-                   (!status->num_of_gtk_rekeys || installed))
+                   (!status->num_of_gtk_rekeys))
                        iwl_mvm_set_key_rx_seq_idx(key, status, i);
        }
 }
@@ -1963,7 +1962,7 @@ static void iwl_mvm_d3_update_keys(struct ieee80211_hw *hw,
                     (status->gtk[1].len && keyidx == status->gtk[1].id))) {
                        ieee80211_remove_key(key);
                } else {
-                       iwl_mvm_set_key_rx_seq(key, data->status, false);
+                       iwl_mvm_set_key_rx_seq(key, data->status);
                }
                break;
        case WLAN_CIPHER_SUITE_BIP_GMAC_128: