Commit 961de6a5 authored by Johannes Berg's avatar Johannes Berg

iwlwifi: pcie: make unused queue warning more readable

Use the return value of WARN_ONCE() and add a message with
the queue ID that's getting used.
Reviewed-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent f2532b04
...@@ -1619,10 +1619,9 @@ int iwl_trans_pcie_tx(struct iwl_trans *trans, struct sk_buff *skb, ...@@ -1619,10 +1619,9 @@ int iwl_trans_pcie_tx(struct iwl_trans *trans, struct sk_buff *skb,
txq = &trans_pcie->txq[txq_id]; txq = &trans_pcie->txq[txq_id];
q = &txq->q; q = &txq->q;
if (unlikely(!test_bit(txq_id, trans_pcie->queue_used))) { if (WARN_ONCE(!test_bit(txq_id, trans_pcie->queue_used),
WARN_ON_ONCE(1); "TX on unused queue %d\n", txq_id))
return -EINVAL; return -EINVAL;
}
spin_lock(&txq->lock); spin_lock(&txq->lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment