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:27:03 +0000 (09:27 +0200)
commita53df4495996f720c88acfd8f296336dae2d455c
tree19a42e5da583da18892855f85153fa696eefea77
parent4fa0d8ed5c4584a66198152a8b78f4d24e7f4df1
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