mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
hwrng: core - use MAX to simplify RNG_BUFFER_SIZE
Replace the open-coded variant with MAX(). Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
3541710791
commit
dc3ec9af62
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#define RNG_MODULE_NAME "hw_random"
|
||||
|
||||
#define RNG_BUFFER_SIZE (SMP_CACHE_BYTES < 32 ? 32 : SMP_CACHE_BYTES)
|
||||
#define RNG_BUFFER_SIZE MAX(32, SMP_CACHE_BYTES)
|
||||
|
||||
static struct hwrng __rcu *current_rng;
|
||||
/* the current rng has been explicitly chosen by user via sysfs */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user