wifi: iwlwifi: mvm: fold the ref++ into iwl_mvm_phy_ctxt_add
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 11 Oct 2023 10:07:25 +0000 (13:07 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 23 Oct 2023 10:26:27 +0000 (12:26 +0200)
commita32a84948e3b1bb9d76bb198e20c616c4b7810d7
treeba824aa1c8642efe20d27e54eb9d4d506fb98f59
parentf3276ff0d498a364dfdff74cc1825b5f6e27f472
wifi: iwlwifi: mvm: fold the ref++ into iwl_mvm_phy_ctxt_add

When we want to add a phy_ctxt, we need to increase the ref.
Note that all the WARN_ONs are already in place:
* We check that we don't add a context with ref != 0
* We check that we don't modify a context with ref = 0

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20231011130030.c19c07746b26.I5b0cbe0760811631a320218a10b88870b5bf0897@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
drivers/net/wireless/intel/iwlwifi/mvm/phy-ctxt.c