]> git.baikalelectronics.ru Git - kernel.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)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 19 May 2022 14:54:15 +0000 (16:54 +0200)
commit3aa1ea85b8edb2212353b3ae529734690c9536c3
treecf0f6586f65614baa90a571b63ba8087e42edc0f
parent5c7115cb74a8cc488288560c3bb87f84fa10d317
random: make consistent use of buf and len

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>
drivers/char/random.c
include/linux/random.h