From: Gustavo A. R. Silva Date: Tue, 6 Mar 2018 00:10:46 +0000 (-0600) Subject: HID: hid-multitouch: Use true and false for boolean values X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=001fab49dd4fcf64b1b8ccecb8656baa3f3f1a9a;p=openwrt%2Fstaging%2Fblogic.git HID: hid-multitouch: Use true and false for boolean values Assign true or false to boolean variables instead of an integer value. This issue was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c index 3b4739bde05d..d378057191fd 100644 --- a/drivers/hid/hid-multitouch.c +++ b/drivers/hid/hid-multitouch.c @@ -722,7 +722,7 @@ static void mt_complete_slot(struct mt_device *td, struct input_dev *input) } if (!(td->mtclass.quirks & MT_QUIRK_CONFIDENCE)) - s->confidence_state = 1; + s->confidence_state = true; active = (s->touch_state || s->inrange_state) && s->confidence_state;