wifi: iwlwifi: mvm: fix initialization of a return value
authorMukesh Sisodiya <mukesh.sisodiya@intel.com>
Sun, 14 May 2023 09:15:50 +0000 (12:15 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 16 May 2023 17:27:05 +0000 (10:27 -0700)
commite234c36290430a833aa87532a7740fef031c2c85
tree454dd5ab5148e69baaaa83191ff3a0dc4cdc70e7
parent6818266283d191549afa87ac5d7b86635a5fb105
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 <mukesh.sisodiya@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230514120631.98b7e3aacf0b.I2fc274dd7e374ef7fac8e26d71c9cd73323da665@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mld-sta.c