summaryrefslogtreecommitdiff
path: root/drivers/char/uv_mmtimer.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2022-03-08 11:20:17 -0700
committerJason A. Donenfeld <Jason@zx2c4.com>2022-03-12 18:00:56 -0700
commita96cfe2d427064325ecbf56df8816c6b871ec285 (patch)
treec165d1d037274d16dbbc8703e4f8ffa4ade14b32 /drivers/char/uv_mmtimer.c
parentf5eab0e2db4f881fb2b62b3fdad5b9be673dd7ae (diff)
random: make consistent usage of crng_ready()
Rather than sometimes checking `crng_init < 2`, we should always use the crng_ready() macro, so that should we change anything later, it's consistent. Additionally, that macro already has a likely() around it, which means we don't need to open code our own likely() and unlikely() annotations. Cc: Theodore Ts'o <tytso@mit.edu> Reviewed-by: Dominik Brodowski <linux@dominikbrodowski.net> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'drivers/char/uv_mmtimer.c')
0 files changed, 0 insertions, 0 deletions