iwlwifi: mvm: remove unnecessary check in iwl_mvm_is_d0i3_supported()
authorLuca Coelho <luciano.coelho@intel.com>
Mon, 26 Oct 2015 11:43:12 +0000 (13:43 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 26 Nov 2015 14:38:52 +0000 (16:38 +0200)
The d0i3_mode element is never set to IWL_D0I3_OFF, so it's not
necessary to check it in iwl_mvm_is_d0i3_supported().

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h

index 91c7480c691921dad1abf9297a5773d55d73374c..013b37920048ed19ea4de43012b8eb5f67129cf9 100644 (file)
@@ -913,8 +913,7 @@ iwl_mvm_sta_from_staid_protected(struct iwl_mvm *mvm, u8 sta_id)
 
 static inline bool iwl_mvm_is_d0i3_supported(struct iwl_mvm *mvm)
 {
-       return mvm->trans->d0i3_mode != IWL_D0I3_MODE_OFF &&
-               !iwlwifi_mod_params.d0i3_disable &&
+       return !iwlwifi_mod_params.d0i3_disable &&
                fw_has_capa(&mvm->fw->ucode_capa,
                            IWL_UCODE_TLV_CAPA_D0I3_SUPPORT);
 }
This page took 0.038915 seconds and 5 git commands to generate.