iwlwifi: pcie: fix erroneous return value
authorAnton Protopopov <a.s.protopopov@gmail.com>
Thu, 11 Feb 2016 06:35:15 +0000 (08:35 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 15 Feb 2016 11:38:31 +0000 (13:38 +0200)
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>
drivers/net/wireless/intel/iwlwifi/pcie/trans.c

index 5503072..5a854c6 100644 (file)
@@ -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;
        }