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>
Mon, 30 May 2022 07:29:04 +0000 (09:29 +0200)
commitad86aa8ec90fcc4ce0c2bfdb629b7d2fa3d611a9
tree39d27191c22999da1c7caa214bdf97e70c0f8016
parent1bc9db59b24c14fc73d1a1d8288064edd5e0ac10
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