Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4690c33d authored by Dan Carpenter's avatar Dan Carpenter Committed by John W. Linville
Browse files

iwlwifi: signedness bug in iwl_trans_pcie_tx_agg_alloc()



unsigned shorts and unsigned chars are never == -1.

Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarWey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 427977ab
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);