Skip to content

Commit 20aa99b

Browse files
aspskegrumbach
authored andcommitted
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 <[email protected]> Signed-off-by: Emmanuel Grumbach <[email protected]>
1 parent a6bd005 commit 20aa99b

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/wireless/intel/iwlwifi/pcie

1 file changed

+1
-1
lines changed

drivers/net/wireless/intel/iwlwifi/pcie/trans.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@ static int iwl_trans_pcie_start_fw(struct iwl_trans *trans,
11681168
if (trans_pcie->is_down) {
11691169
IWL_WARN(trans,
11701170
"Can't start_fw since the HW hasn't been started\n");
1171-
ret = EIO;
1171+
ret = -EIO;
11721172
goto out;
11731173
}
11741174

0 commit comments

Comments
 (0)