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)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 21 Feb 2022 15:48:06 +0000 (16:48 +0100)
commit5d58ea3a31cc98b9fa563f6921d3d043bf0103d1
treee0a62702c2b6b0463ba30a98e3cb278cf76f5025
parenta49c010e61e1938be851f5e49ac219d49b704103
random: remove use_input_pool parameter from crng_reseed()

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