random: remove use_input_pool parameter from crng_reseed()
authorEric Biggers <ebiggers@google.com>
Fri, 4 Feb 2022 22:17:33 +0000 (14:17 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Jun 2022 09:46:33 +0000 (11:46 +0200)
commit8c39bfd9db3c67e689dea3c6bd6345c9888ad1c4
treef33dab7563e8fcccc0eb71683980bcc24bfed064
parent6605171cd8cb927fddc75cd6f4cfab50e91c5b5b
random: remove use_input_pool parameter from crng_reseed()

commit 5d58ea3a31cc98b9fa563f6921d3d043bf0103d1 upstream.

The primary_crng is always reseeded from the input_pool, while the NUMA
crngs are always reseeded from the primary_crng.  Remove the redundant
'use_input_pool' parameter from crng_reseed() and just directly check
whether the crng is the primary_crng.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/random.c