Skip to content

Commit

Permalink
HID: hid-multitouch: Use true and false for boolean values
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gustavo A. R. Silva authored and Jiri Kosina committed Mar 6, 2018
1 parent 04230f4 commit 001fab4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hid/hid-multitouch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 001fab4

Please sign in to comment.