diff options
author | Jiangshan Yi <yijiangshan@kylinos.cn> | 2022-07-13 06:20:47 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2022-08-25 12:29:58 +0300 |
commit | 486da113c698a748bd8d75a0d10a2eee8ef8d416 (patch) | |
tree | fc23463886d36def71d300046b7206d5a4138267 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 8d9420ca9bd9bceddcfab3d0263d6a8e073396fe (diff) | |
download | linux-486da113c698a748bd8d75a0d10a2eee8ef8d416.tar.xz |
HID: rmi: replace ternary operator with min()
Fix the following coccicheck warning:
drivers/hid/hid-rmi.c:240: WARNING opportunity for min().
drivers/hid/hid-rmi.c:350: 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.
Signed-off-by: Jiangshan Yi <yijiangshan@kylinos.cn>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions