Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 75a24b82 authored by Martin Kelly's avatar Martin Kelly Committed by Jiri Kosina
Browse files

kfifo: fix inaccurate comment



The comment in __kfifo_alloc says we round down, but we actually round
up, so correct it.

Signed-off-by: default avatarMartin Kelly <mkelly@xevo.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 6c59f64b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);