diff options
author | 2023-03-28 11:16:29 +0800 | |
---|---|---|
committer | 2023-03-30 19:09:49 +0200 | |
commit | 0dc9a715578b041b6159714f23f94cf71a214411 (patch) | |
tree | f3ec40c1c576ccf270e6764223e81cfde1a25844 /scripts/generate_rust_analyzer.py | |
parent | Linux 6.3-rc4 (diff) | |
download | linux-rng-0dc9a715578b041b6159714f23f94cf71a214411.tar.xz linux-rng-0dc9a715578b041b6159714f23f94cf71a214411.zip |
ACPI: thermal: Replace ternary operator with min_t()
Modify the code in accordance with the coccicheck warning:
drivers/acpi/thermal.c:422: WARNING opportunity for min().
min_t() macro is defined in include/linux/minmax.h. It avoids multiple
evaluations of the arguments when non-constant and performs strict
type-checking.
Signed-off-by: Jiangshan Yi <yijiangshan@kylinos.cn>
[ rjw: Changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions