Skip to content

Commit

Permalink
iwlwifi: pcie: fix erroneous return value
Browse files Browse the repository at this point in the history
The iwl_trans_pcie_start_fw() function may return the positive value EIO
instead of -EIO in case of error.

Signed-off-by: Anton Protopopov <a.s.protopopov@gmail.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
  • Loading branch information
Anton Protopopov authored and Emmanuel Grumbach committed Feb 15, 2016
1 parent a6bd005 commit 20aa99b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/intel/iwlwifi/pcie/trans.c
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,7 @@ static int iwl_trans_pcie_start_fw(struct iwl_trans *trans,
if (trans_pcie->is_down) {
IWL_WARN(trans,
"Can't start_fw since the HW hasn't been started\n");
ret = EIO;
ret = -EIO;
goto out;
}

Expand Down

0 comments on commit 20aa99b

Please sign in to comment.