WSL2-Linux-Kernel/drivers/comedi
Guo Zhengkui 80ad54a63a 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 <abbotti@mev.co.uk>
Signed-off-by: Guo Zhengkui <guozhengkui@vivo.com>
Link: https://lore.kernel.org/r/20220513071608.49047-1-guozhengkui@vivo.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-05-19 18:54:45 +02:00
..
drivers comedi: drivers: ni_routes: Use strcmp() instead of memcmp() 2022-02-25 12:08:52 +01:00
kcomedilib
Kconfig
Makefile
TODO
comedi_buf.c
comedi_fops.c
comedi_internal.h
comedi_pci.c
comedi_pcmcia.c
comedi_usb.c
drivers.c drivers: comedi: replace ternary operator with min() 2022-05-19 18:54:45 +02:00
proc.c
range.c