Skip to content

Commit

Permalink
kfifo: fix inaccurate comment
Browse files Browse the repository at this point in the history
The comment in __kfifo_alloc says we round down, but we actually round
up, so correct it.

Signed-off-by: Martin Kelly <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
  • Loading branch information
Martin Kelly authored and Jiri Kosina committed Mar 27, 2018
1 parent 6c59f64 commit 75a24b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kfifo.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ int __kfifo_alloc(struct __kfifo *fifo, unsigned int size,
size_t esize, gfp_t gfp_mask)
{
/*
* round down to the next power of 2, since our 'let the indices
* round up to the next power of 2, since our 'let the indices
* wrap' technique works only in this case.
*/
size = roundup_pow_of_two(size);
Expand Down

0 comments on commit 75a24b8

Please sign in to comment.