]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitebf7606388732ecf2821ca21087e9446cb4a5b57
treec98fb919cf797db364b6a69c88011c6e22e3d123
parent042e293e16e3aa9794ce60c29f5b7b0c8170f933
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