Skip to content

Commit 001fab4

Browse files
GustavoARSilvaJiri Kosina
authored andcommitted
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 <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 04230f4 commit 001fab4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hid/hid-multitouch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ static void mt_complete_slot(struct mt_device *td, struct input_dev *input)
722722
}
723723

724724
if (!(td->mtclass.quirks & MT_QUIRK_CONFIDENCE))
725-
s->confidence_state = 1;
725+
s->confidence_state = true;
726726
active = (s->touch_state || s->inrange_state) &&
727727
s->confidence_state;
728728

0 commit comments

Comments
 (0)