]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
random: make consistent use of buf and len
authorJason A. Donenfeld <Jason@zx2c4.com>
Fri, 13 May 2022 11:18:46 +0000 (13:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 May 2022 07:24:08 +0000 (09:24 +0200)
commit6fd3ff02dadcf6eacf6efd2e0840e75506d15905
tree1de3dc75e376c2d04d589fce54d931a8de038403
parentda71481fefa21c7511244b66d000590704bd21ba
random: make consistent use of buf and len

commit a19402634c435a4eae226df53c141cdbb9922e7b upstream.

The current code was a mix of "nbytes", "count", "size", "buffer", "in",
and so forth. Instead, let's clean this up by naming input parameters
"buf" (or "ubuf") and "len", so that you always understand that you're
reading this variety of function argument.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/random.c
include/linux/random.h