HID: hid-multitouch: Use true and false for boolean values
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Tue, 6 Mar 2018 00:10:46 +0000 (18:10 -0600)
committerJiri Kosina <jkosina@suse.cz>
Tue, 6 Mar 2018 14:19:13 +0000 (15:19 +0100)
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 <gustavo@embeddedor.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-multitouch.c

index 3b4739b..d378057 100644 (file)
@@ -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;