]> git.baikalelectronics.ru Git - kernel.git/commit
random: access primary_pool directly rather than through pointer
authorDominik Brodowski <linux@dominikbrodowski.net>
Sun, 30 Jan 2022 21:03:19 +0000 (22:03 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 4 Feb 2022 18:22:32 +0000 (19:22 +0100)
commitd373b8b8d1f3fb99ecd8fe0788855ec0988bff99
treec98fb919cf797db364b6a69c88011c6e22e3d123
parent5093e8106b7f633803f698db39140de6748a545c
random: access primary_pool directly rather than through pointer

Both crng_initialize_primary() and crng_init_try_arch_early() are
only called for the primary_pool. Accessing it directly instead of
through a function parameter simplifies the code.

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