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:27:17 +0000 (09:27 +0200)
commite35c23cb125712a5448b5dff515cae49e68290bd
treeeb8de27fd307264ba85ca48d377c4dd6d61f450a
parent65d3f67f00be69ef66d4f79ea7d47eb7c7679ec8
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