diff options
author | Martin Kelly <mkelly@xevo.com> | 2018-03-26 11:18:23 -0700 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2018-03-27 11:15:42 +0200 |
commit | 75a24b822d383489badd343cab4cb171d09f93ef (patch) | |
tree | cc08868246b03bb08b8c1bd1df0d4c50ff422940 /lib | |
parent | 6c59f64b7ecf2bccbe73931d7d573d66ed13b537 (diff) | |
download | op-kernel-dev-75a24b822d383489badd343cab4cb171d09f93ef.zip op-kernel-dev-75a24b822d383489badd343cab4cb171d09f93ef.tar.gz |
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 <mkelly@xevo.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/kfifo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kfifo.c b/lib/kfifo.c index 90ba1eb..b0f757b 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); |