diff options
| author | David Laight <david.laight.linux@gmail.com> | 2025-11-19 22:41:14 +0000 |
|---|---|---|
| committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2025-11-20 09:08:27 +0100 |
| commit | b2a186cced1199bb2777e229dc37a04d33507c6d (patch) | |
| tree | 3a1168cfb05c9f41f8913f7641ef5b5da4972fc5 /drivers/gpio/gpio-ge.c | |
| parent | 3a8660878839faadb4f1a6dd72c3179c1df56787 (diff) | |
gpiolib: acpi: use min() instead of min_t()
min_t(u16, a, b) casts an 'unsigned long' to 'u16'.
Use min(a, b) instead as it promotes the both values to int
and so cannot discard significant bits.
In this case the values should be ok.
Detected by an extra check added to min_t().
Signed-off-by: David Laight <david.laight.linux@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/gpio/gpio-ge.c')
0 files changed, 0 insertions, 0 deletions