summaryrefslogtreecommitdiffstats
path: root/drivers/net/hamradio
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2022-06-07 09:44:07 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2022-06-10 11:09:36 +0200
commit9b29b6b20376ab64e1b043df6301d8a92378e631 (patch)
tree90ba493df6bc5a7da74b9c9507c9d0fa6d0d652b /drivers/net/hamradio
parent77991645952c21962a095910c51fe0f73d35bf91 (diff)
downloadlinux-9b29b6b20376ab64e1b043df6301d8a92378e631.tar.bz2
random: avoid checking crng_ready() twice in random_init()
The current flow expands to: if (crng_ready()) ... else if (...) if (!crng_ready()) ... The second crng_ready() call is redundant, but can't so easily be optimized out by the compiler. This commit simplifies that to: if (crng_ready() ... else if (...) ... Fixes: 560181c27b58 ("random: move initialization functions out of hot pages") Cc: stable@vger.kernel.org Cc: Dominik Brodowski <linux@dominikbrodowski.net> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'drivers/net/hamradio')
0 files changed, 0 insertions, 0 deletions