diff options
author | Anton Protopopov <a.s.protopopov@gmail.com> | 2016-02-11 07:35:15 +0100 |
---|---|---|
committer | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2016-02-15 12:38:31 +0100 |
commit | 20aa99bbddae74bded68338f9ba200ccae02858b (patch) | |
tree | 2d3b32931b9cc5147b4131859894aeca4bc63216 /drivers/net | |
parent | iwlwifi: pcie: fix RF-Kill vs. firmware load race (diff) | |
download | linux-20aa99bbddae74bded68338f9ba200ccae02858b.tar.xz linux-20aa99bbddae74bded68338f9ba200ccae02858b.zip |
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: Anton Protopopov <a.s.protopopov@gmail.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/intel/iwlwifi/pcie/trans.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/pcie/trans.c b/drivers/net/wireless/intel/iwlwifi/pcie/trans.c index 55030729c7d9..5a854c609477 100644 --- a/drivers/net/wireless/intel/iwlwifi/pcie/trans.c +++ b/drivers/net/wireless/intel/iwlwifi/pcie/trans.c @@ -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; } |