[PATCH 4.9 030/264] random: Fix whitespace pre random-bytes work
From: Greg Kroah-Hartman
Date: Thu Jun 23 2022 - 12:47:47 EST
From: "Tobin C. Harding" <me@xxxxxxxx>
commit 8ddd6efa56c3fe23df9fe4cf5e2b49cc55416ef4 upstream.
There are a couple of whitespace issues around the function
get_random_bytes_arch(). In preparation for patching this function
let's clean them up.
Acked-by: Theodore Ts'o <tytso@xxxxxxx>
Signed-off-by: Tobin C. Harding <me@xxxxxxxx>
Signed-off-by: Theodore Ts'o <tytso@xxxxxxx>
Signed-off-by: Jason A. Donenfeld <Jason@xxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
drivers/char/random.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -1795,7 +1795,7 @@ void get_random_bytes_arch(void *buf, in
if (!arch_get_random_long(&v))
break;
-
+
memcpy(p, &v, chunk);
p += chunk;
nbytes -= chunk;
@@ -1806,7 +1806,6 @@ void get_random_bytes_arch(void *buf, in
}
EXPORT_SYMBOL(get_random_bytes_arch);
-
/*
* init_std_data - initialize pool with system data
*