iwlwifi: signedness bug in iwl_trans_pcie_tx_agg_alloc()
authorDan Carpenter <error27@gmail.com>
Wed, 31 Aug 2011 06:38:30 +0000 (09:38 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 13 Sep 2011 19:48:48 +0000 (15:48 -0400)
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>
drivers/net/wireless/iwlwifi/iwl-trans-tx-pcie.c

index 5dd6a6d1dfd731f67fba04b3a727ba37e507ecc3..ea6a0bc8ca20d0dc80f95caf591befed0cef5907 100644 (file)
@@ -535,7 +535,7 @@ int iwl_trans_pcie_tx_agg_alloc(struct iwl_trans *trans,
        struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans);
        struct iwl_tid_data *tid_data;
        unsigned long flags;
-       u16 txq_id;
+       int txq_id;
        struct iwl_priv *priv = priv(trans);
 
        txq_id = iwlagn_txq_ctx_activate_free(trans);