Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 179336
b: refs/heads/master
c: 7e10505
h: refs/heads/master
v: v3
  • Loading branch information
Stefani Seibold authored and Linus Torvalds committed Jan 16, 2010
1 parent 3c4e05f commit 4955e44
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 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: 33f724eb9e3d6e33aad410318d3ac720fecbdbcd
refs/heads/master: 7e105057a34c83cea542dacc55ff0528bce67afa
7 changes: 0 additions & 7 deletions trunk/include/linux/kfifo.h
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,6 @@ static inline __must_check unsigned int kfifo_out_locked(struct kfifo *fifo,

ret = kfifo_out(fifo, to, n);

/*
* optimization: if the FIFO is empty, set the indices to 0
* so we don't wrap the next time
*/
if (kfifo_is_empty(fifo))
kfifo_reset(fifo);

spin_unlock_irqrestore(lock, flags);

return ret;
Expand Down

0 comments on commit 4955e44

Please sign in to comment.