Skip to content
Commit 486da113 authored by Jiangshan Yi's avatar Jiangshan Yi Committed by Jiri Kosina
Browse files

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: default avatarJiangshan Yi <yijiangshan@kylinos.cn>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 8d9420ca
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment