Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0df1391f authored by Chaya Rachel Ivgi's avatar Chaya Rachel Ivgi Committed by Emmanuel Grumbach
Browse files

iwlwifi: mvm: remove uneeded D0I3 checking



The driver can read the current state during D0I3,
therefore there is no reason not to do it.

Signed-off-by: default avatarChaya Rachel Ivgi <chaya.rachel.ivgi@intel.com>
Signed-off-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
parent 2a2e9d10
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -787,9 +787,6 @@ static int iwl_mvm_tcool_get_cur_state(struct thermal_cooling_device *cdev,
{
	struct iwl_mvm *mvm = (struct iwl_mvm *)(cdev->devdata);

	if (test_bit(IWL_MVM_STATUS_IN_D0I3, &mvm->status))
		return -EBUSY;

	*state = mvm->cooling_dev.cur_state;

	return 0;