diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-03-05 19:10:46 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2018-03-06 09:19:13 -0500 |
commit | 001fab49dd4fcf64b1b8ccecb8656baa3f3f1a9a (patch) | |
tree | c4a4638d6cca1137d2f1a0ec5f7e19c01c67d006 | |
parent | 04230f46025536896b15af22d8fae7fa519f9740 (diff) |
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 <gustavo@embeddedor.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r-- | drivers/hid/hid-multitouch.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
722 | } | 722 | } |
723 | 723 | ||
724 | if (!(td->mtclass.quirks & MT_QUIRK_CONFIDENCE)) | 724 | if (!(td->mtclass.quirks & MT_QUIRK_CONFIDENCE)) |
725 | s->confidence_state = 1; | 725 | s->confidence_state = true; |
726 | active = (s->touch_state || s->inrange_state) && | 726 | active = (s->touch_state || s->inrange_state) && |
727 | s->confidence_state; | 727 | s->confidence_state; |
728 | 728 | ||