diff options
| author | David Laight <david.laight.linux@gmail.com> | 2025-11-19 22:41:33 +0000 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2025-11-24 17:44:14 +0800 |
| commit | 80b61046b6899c6e881ff191aa99256d8e43cd58 (patch) | |
| tree | 834fc6c9b52747c32a15b8374945501bf9736375 /scripts/kernel-doc.py | |
| parent | 14ca8ce1fcbbd4448c302e144052cfc2fe288232 (diff) | |
crypto: lib/mpi - use min() instead of min_t()
min_t(unsigned int, a, b) casts an 'unsigned long' to 'unsigned int'.
Use min(a, b) instead as it promotes any 'unsigned int' to 'unsigned long'
and so cannot discard significant bits.
In this case the 'unsigned long' value is small enough that the result
is ok.
Detected by an extra check added to min_t().
Signed-off-by: David Laight <david.laight.linux@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'scripts/kernel-doc.py')
0 files changed, 0 insertions, 0 deletions
