diff options
| author | David Laight <david.laight.linux@gmail.com> | 2025-11-19 22:41:10 +0000 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2025-11-24 17:44:14 +0800 |
| commit | 0f8ead58b6dce9520fc3f9ff7f943bb0627a7a19 (patch) | |
| tree | 3514465756fa9e67f505a7b4c204f2537868f7b4 /scripts/lib/abi/abi_parser.py | |
| parent | 6c5d5b6dc5eb966e86a92e6587ccca1ec1e392e1 (diff) | |
hwrng: core - use min3() instead of nested min_t()
min_t(u16, a, b) is likely to discard significant bits.
Replace:
min_t(u16, min_t(u16, default_quality, 1024), rng->quality ?: 1024);
with:
min3(default_quality, 1024, rng->quality ?: 1024);
Signed-off-by: David Laight <david.laight.linux@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'scripts/lib/abi/abi_parser.py')
0 files changed, 0 insertions, 0 deletions
