random: access input_pool_data directly rather than through pointer
authorJason A. Donenfeld <Jason@zx2c4.com>
Sat, 15 Jan 2022 13:40:04 +0000 (14:40 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 17 Jan 2022 17:37:34 +0000 (18:37 +0100)
commitaa64629f748c8d22e07313b5e6a16954293e24b4
treeaa9149e5e901e5bb97b1f7e53292846ede255653
parent62d337f0742e9f29588d8f81344e41fc3b00e5b1
random: access input_pool_data directly rather than through pointer

This gets rid of another abstraction we no longer need. It would be nice
if we could instead make pool an array rather than a pointer, but the
latent entropy plugin won't be able to do its magic in that case. So
instead we put all accesses to the input pool's actual data through the
input_pool_data array directly.

Reviewed-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
drivers/char/random.c