From: Martin Kelly Date: Mon, 26 Mar 2018 18:18:23 +0000 (-0700) Subject: kfifo: fix inaccurate comment X-Git-Tag: Ubuntu-5.2.0-15.16~4685^2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=75a24b822d383489badd343cab4cb171d09f93ef;p=mirror_ubuntu-eoan-kernel.git kfifo: fix inaccurate comment The comment in __kfifo_alloc says we round down, but we actually round up, so correct it. Signed-off-by: Martin Kelly Signed-off-by: Jiri Kosina --- diff --git a/lib/kfifo.c b/lib/kfifo.c index 90ba1eb1df06..b0f757bf7213 100644 --- a/lib/kfifo.c +++ b/lib/kfifo.c @@ -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);