diff options
| author | Guo Zhengkui <[email protected]> | 2022-05-13 15:16:06 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-05-19 18:54:45 +0200 |
| commit | 80ad54a63af3a3e2eb701fbf30242a922c4fac47 (patch) | |
| tree | 445d5cc17fb11ed1daef3909681f6f5022128420 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 7394d2ebb651a9f62e08c6ab864aac015d27c64d (diff) | |
drivers: comedi: replace ternary operator with min()
Fix the following coccicheck warning:
drivers/comedi/drivers.c:857:12-13: WARNING opportunity for min().
min() macro is defined in include/linux/minmax.h. It avoids multiple
evaluations of the arguments when non-constant and performs strict
type-checking.
Reviewed-by: Ian Abbott <[email protected]>
Signed-off-by: Guo Zhengkui <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions