Skip to content

Commit e234c36

Browse files
sisodiyamukeshjmberg-intel
authored andcommitted
wifi: iwlwifi: mvm: fix initialization of a return value
In iwl_mvm_mld_update_sta(), if the flow doesn't enter for_each_sta_active_link(), the default value is returned. Set this default to -EINVAL instead of 0 to better reflect this. Signed-off-by: Mukesh Sisodiya <[email protected]> Signed-off-by: Gregory Greenman <[email protected]> Link: https://lore.kernel.org/r/20230514120631.98b7e3aacf0b.I2fc274dd7e374ef7fac8e26d71c9cd73323da665@changeid Signed-off-by: Johannes Berg <[email protected]>
1 parent 6818266 commit e234c36

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/wireless/intel/iwlwifi/mvm

1 file changed

+1
-1
lines changed

drivers/net/wireless/intel/iwlwifi/mvm/mld-sta.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ int iwl_mvm_mld_update_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
728728
struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta);
729729
struct ieee80211_link_sta *link_sta;
730730
unsigned int link_id;
731-
int ret = 0;
731+
int ret = -EINVAL;
732732

733733
lockdep_assert_held(&mvm->mutex);
734734

0 commit comments

Comments
 (0)