提交 75a24b82 编写于 作者: M Martin Kelly 提交者: Jiri Kosina

kfifo: fix inaccurate comment

The comment in __kfifo_alloc says we round down, but we actually round
up, so correct it.
Signed-off-by: NMartin Kelly <mkelly@xevo.com>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 6c59f64b
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册