diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-03-08 21:20:17 +0300 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-03-13 04:00:56 +0300 |
commit | a96cfe2d427064325ecbf56df8816c6b871ec285 (patch) | |
tree | c165d1d037274d16dbbc8703e4f8ffa4ade14b32 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | f5eab0e2db4f881fb2b62b3fdad5b9be673dd7ae (diff) | |
download | linux-a96cfe2d427064325ecbf56df8816c6b871ec285.tar.xz |
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 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions