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

Commit 20aa99bb authored by Anton Protopopov's avatar Anton Protopopov Committed by Emmanuel Grumbach
Browse files

iwlwifi: pcie: fix erroneous return value



The iwl_trans_pcie_start_fw() function may return the positive value EIO
instead of -EIO in case of error.

Signed-off-by: default avatarAnton Protopopov <a.s.protopopov@gmail.com>
Signed-off-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
parent a6bd005f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1168,7 +1168,7 @@ static int iwl_trans_pcie_start_fw(struct iwl_trans *trans,
	if (trans_pcie->is_down) {
	if (trans_pcie->is_down) {
		IWL_WARN(trans,
		IWL_WARN(trans,
			 "Can't start_fw since the HW hasn't been started\n");
			 "Can't start_fw since the HW hasn't been started\n");
		ret = EIO;
		ret = -EIO;
		goto out;
		goto out;
	}
	}