diff options
author | Dan Carpenter <error27@gmail.com> | 2011-08-31 02:38:30 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-09-13 15:48:48 -0400 |
commit | 4690c33df6be8bf78a0d5fe58baae33462b0bc1f (patch) | |
tree | 76b2585978beea7d17150d36f3b3e0ef4c6f2ef0 /drivers/net/wireless/iwlwifi/iwl-trans-tx-pcie.c | |
parent | 427977ab2e24bb76c733cc50be97d4262028f14a (diff) |
iwlwifi: signedness bug in iwl_trans_pcie_tx_agg_alloc()
unsigned shorts and unsigned chars are never == -1.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-trans-tx-pcie.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-trans-tx-pcie.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-trans-tx-pcie.c b/drivers/net/wireless/iwlwifi/iwl-trans-tx-pcie.c index 5dd6a6d1dfd7..ea6a0bc8ca20 100644 --- a/drivers/net/wireless/iwlwifi/iwl-trans-tx-pcie.c +++ b/drivers/net/wireless/iwlwifi/iwl-trans-tx-pcie.c | |||
@@ -535,7 +535,7 @@ int iwl_trans_pcie_tx_agg_alloc(struct iwl_trans *trans, | |||
535 | struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); | 535 | struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); |
536 | struct iwl_tid_data *tid_data; | 536 | struct iwl_tid_data *tid_data; |
537 | unsigned long flags; | 537 | unsigned long flags; |
538 | u16 txq_id; | 538 | int txq_id; |
539 | struct iwl_priv *priv = priv(trans); | 539 | struct iwl_priv *priv = priv(trans); |
540 | 540 | ||
541 | txq_id = iwlagn_txq_ctx_activate_free(trans); | 541 | txq_id = iwlagn_txq_ctx_activate_free(trans); |