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>
Sun, 13 Feb 2022 23:46:07 +0000 (00:46 +0100)
commit8990c225eb9f5d35fef429b65ffc64ac3c81cc50
tree8a3780fefcc317609888a9e7fcab42bd9b6f3436
parent2c39062594587bba00e634f42ed2410e09cbe5e2
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