Skip to content

Commit

Permalink
iwlwifi: signedness bug in iwl_trans_pcie_tx_agg_alloc()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and John W. Linville committed Sep 13, 2011
1 parent 427977a commit 4690c33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/iwlwifi/iwl-trans-tx-pcie.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4690c33

Please sign in to comment.