diff options
author | Luca Coelho <luciano.coelho@intel.com> | 2015-10-26 07:43:12 -0400 |
---|---|---|
committer | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2015-11-26 09:38:52 -0500 |
commit | 6f7306622ff4e6b6d59efa77383e0cd9d85f46b0 (patch) | |
tree | 5c72d6e74b336088127e2621074c48e548bbfa5f /drivers/net/wireless/intel | |
parent | eb3908d3718455e9fcb0d52b391a2851900d7e27 (diff) |
iwlwifi: mvm: remove unnecessary check in iwl_mvm_is_d0i3_supported()
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>
Diffstat (limited to 'drivers/net/wireless/intel')
-rw-r--r-- | drivers/net/wireless/intel/iwlwifi/mvm/mvm.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mvm.h b/drivers/net/wireless/intel/iwlwifi/mvm/mvm.h index 91c7480c6919..013b37920048 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/mvm.h +++ b/drivers/net/wireless/intel/iwlwifi/mvm/mvm.h | |||
@@ -913,8 +913,7 @@ iwl_mvm_sta_from_staid_protected(struct iwl_mvm *mvm, u8 sta_id) | |||
913 | 913 | ||
914 | static inline bool iwl_mvm_is_d0i3_supported(struct iwl_mvm *mvm) | 914 | static inline bool iwl_mvm_is_d0i3_supported(struct iwl_mvm *mvm) |
915 | { | 915 | { |
916 | return mvm->trans->d0i3_mode != IWL_D0I3_MODE_OFF && | 916 | return !iwlwifi_mod_params.d0i3_disable && |
917 | !iwlwifi_mod_params.d0i3_disable && | ||
918 | fw_has_capa(&mvm->fw->ucode_capa, | 917 | fw_has_capa(&mvm->fw->ucode_capa, |
919 | IWL_UCODE_TLV_CAPA_D0I3_SUPPORT); | 918 | IWL_UCODE_TLV_CAPA_D0I3_SUPPORT); |
920 | } | 919 | } |