Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 341575
b: refs/heads/master
c: 6ca6ebc
h: refs/heads/master
i:
  341573: 00ebcbd
  341571: 1396396
  341567: d496e86
v: v3
  • Loading branch information
Emmanuel Grumbach authored and Johannes Berg committed Nov 19, 2012
1 parent 50a75ff commit 56c3c2a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 686681b066fed089d14c9cee60d9d95680da6cdb
refs/heads/master: 6ca6ebc1606c6fa7e8931445e84f21f4843e3bab
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/iwlwifi/pcie/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ static inline void iwl_stop_queue(struct iwl_trans *trans,
txq->q.id);
}

static inline int iwl_queue_used(const struct iwl_queue *q, int i)
static inline bool iwl_queue_used(const struct iwl_queue *q, int i)
{
return q->write_ptr >= q->read_ptr ?
(i >= q->read_ptr && i < q->write_ptr) :
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/wireless/iwlwifi/pcie/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ void iwl_trans_pcie_reclaim(struct iwl_trans *trans, int txq_id, int ssn,
* the last we will free. This one must be used */
last_to_free = iwl_queue_dec_wrap(tfd_num, q->n_bd);

if (iwl_queue_used(q, last_to_free) == 0) {
if (!iwl_queue_used(q, last_to_free)) {
IWL_ERR(trans,
"%s: Read index for DMA queue txq id (%d), last_to_free %d is out of range [0-%d] %d %d.\n",
__func__, txq_id, last_to_free, q->n_bd,
Expand Down Expand Up @@ -969,7 +969,7 @@ static void iwl_pcie_cmdq_reclaim(struct iwl_trans *trans, int txq_id, int idx)

lockdep_assert_held(&txq->lock);

if ((idx >= q->n_bd) || (iwl_queue_used(q, idx) == 0)) {
if ((idx >= q->n_bd) || (!iwl_queue_used(q, idx))) {
IWL_ERR(trans,
"%s: Read index for DMA queue txq id (%d), index %d is out of range [0-%d] %d %d.\n",
__func__, txq_id, idx, q->n_bd,
Expand Down

0 comments on commit 56c3c2a

Please sign in to comment.