aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/pcie/tx.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-08-10 19:03:21 -0400
committerJohannes Berg <johannes.berg@intel.com>2013-08-12 09:21:20 -0400
commit2ab9ba0fdfa20e81c4454c57f534585a264cb238 (patch)
tree2bc5cec208017b0ce908419fb2948c16a6058bc2 /drivers/net/wireless/iwlwifi/pcie/tx.c
parentab3077009f3e5237aaddaf0d5d139b1fd59d3b32 (diff)
iwlwifi: pcie: returning positive instead of negative
There is a missing '-' character here so we return positive 'ENOMEM' instead of negative. The caller doesn't care. All non-zero returns are translated to '-ENOMEM' in iwl_pcie_nic_init(). This is just a cleanup. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/pcie/tx.c')
-rw-r--r--drivers/net/wireless/iwlwifi/pcie/tx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/pcie/tx.c b/drivers/net/wireless/iwlwifi/pcie/tx.c
index 12c9c0030da6..f45eb29c2ede 100644
--- a/drivers/net/wireless/iwlwifi/pcie/tx.c
+++ b/drivers/net/wireless/iwlwifi/pcie/tx.c
@@ -838,7 +838,7 @@ static int iwl_pcie_tx_alloc(struct iwl_trans *trans)
838 sizeof(struct iwl_txq), GFP_KERNEL); 838 sizeof(struct iwl_txq), GFP_KERNEL);
839 if (!trans_pcie->txq) { 839 if (!trans_pcie->txq) {
840 IWL_ERR(trans, "Not enough memory for txq\n"); 840 IWL_ERR(trans, "Not enough memory for txq\n");
841 ret = ENOMEM; 841 ret = -ENOMEM;
842 goto error; 842 goto error;
843 } 843 }
844 844