iwlwifi: mvm: remove useless iwl_mvm_resume_d3() function
authorJohannes Berg <johannes.berg@intel.com>
Wed, 10 Feb 2021 11:56:33 +0000 (13:56 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Wed, 10 Feb 2021 12:37:29 +0000 (14:37 +0200)
This is called exactly once, a few lines down, so there's
no point in having the extra function.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20210210135352.1ef80bf3008c.I0b5349530182b5616a4149dd596f95aa54ea724c@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/d3.c

index acb3062f9eac04e67deeef99f980e6a4e351d0f5..7c51c781cfafc6822a667e2524425f3dd84e7e5e 100644 (file)
@@ -2164,17 +2164,12 @@ out:
        return 1;
 }
 
-static int iwl_mvm_resume_d3(struct iwl_mvm *mvm)
-{
-       return __iwl_mvm_resume(mvm, false);
-}
-
 int iwl_mvm_resume(struct ieee80211_hw *hw)
 {
        struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw);
        int ret;
 
-       ret = iwl_mvm_resume_d3(mvm);
+       ret = __iwl_mvm_resume(mvm, false);
 
        iwl_mvm_resume_tcm(mvm);