Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 89862
b: refs/heads/master
c: 10b6b80
h: refs/heads/master
v: v3
  • Loading branch information
Ivo van Doorn authored and John W. Linville committed Feb 29, 2008
1 parent 8e9b3ce commit d6c76a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: 5957da4c6e67a5447e75c2ad65252fdd5e22f9d0
refs/heads/master: 10b6b80145cc93887dd8aab99bfffa375e9add31
8 changes: 6 additions & 2 deletions trunk/drivers/net/wireless/rt2x00/rt2x00queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,12 @@ void rt2x00queue_index_inc(struct data_queue *queue, enum queue_index index)
if (queue->index[index] >= queue->limit)
queue->index[index] = 0;

queue->length--;
queue->count += (index == Q_INDEX_DONE);
if (index == Q_INDEX) {
queue->length++;
} else if (index == Q_INDEX_DONE) {
queue->length--;
queue->count ++;
}

spin_unlock(&queue->lock);
}
Expand Down

0 comments on commit d6c76a4

Please sign in to comment.