提交 20aa99bb 编写于 作者: A Anton Protopopov 提交者: Emmanuel Grumbach

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: NAnton Protopopov <a.s.protopopov@gmail.com>
Signed-off-by: NEmmanuel Grumbach <emmanuel.grumbach@intel.com>
上级 a6bd005f
...@@ -1168,7 +1168,7 @@ static int iwl_trans_pcie_start_fw(struct iwl_trans *trans, ...@@ -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;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册