aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <[email protected]>2022-03-08 11:20:17 -0700
committerJason A. Donenfeld <[email protected]>2022-03-12 18:00:56 -0700
commita96cfe2d427064325ecbf56df8816c6b871ec285 (patch)
treec165d1d037274d16dbbc8703e4f8ffa4ade14b32 /net/lapb/lapb_subr.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 <[email protected]> Reviewed-by: Dominik Brodowski <[email protected]> Signed-off-by: Jason A. Donenfeld <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions