iwlwifi: signedness bug in
Subsystems (2)
PATCH 2/2 iwlwifi: signedness bug in
unsigned shorts and unsigned chars are never = -1.
Signed-off-by Dan Carpenter <[email protected]>
drivers/net/wireless/iwlwifi/iwl-trans-tx-pcie.c +1 -1
@@ -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);
Quoted 3 lines · Dan Carpenter
unsigned shorts and unsigned chars are never = -1.
Signed-off-by Dan Carpenter <[email protected]>
Signed-off-by Wey-Yi Guy <[email protected]>
Quoted 6 lines
drivers/net/wireless/iwlwifi/iwl-trans-tx-pcie.c +0
-0
drivers/net/wireless/iwlwifi/iwl-trans-tx-pcie.c int iwl_trans_pcie_tx_agg_alloc(struct iwl_trans *trans, · line 541
Quoted 8 lines
drivers/net/wireless/iwlwifi/iwl-trans-tx-pcie.c +1
-1@@ -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);
True
Wey