diff options
| author | Jiangshan Yi <[email protected]> | 2022-07-13 03:20:47 +0000 |
|---|---|---|
| committer | Jiri Kosina <[email protected]> | 2022-08-25 09:29:58 +0000 |
| commit | 486da113c698a748bd8d75a0d10a2eee8ef8d416 (patch) | |
| tree | fc23463886d36def71d300046b7206d5a4138267 /drivers/fpga/fpga-mgr.c | |
| parent | Merge tag 'for-linus-2022080201' of git://git.kernel.org/pub/scm/linux/kernel... (diff) | |
| download | kernel-486da113c698a748bd8d75a0d10a2eee8ef8d416.tar.gz kernel-486da113c698a748bd8d75a0d10a2eee8ef8d416.zip | |
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 <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions
