diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-03-06 01:10:46 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2018-03-06 15:19:13 +0100 |
commit | 001fab49dd4fcf64b1b8ccecb8656baa3f3f1a9a (patch) | |
tree | c4a4638d6cca1137d2f1a0ec5f7e19c01c67d006 /drivers/hid/hid-multitouch.c | |
parent | HID: hid-ntrig: use true and false for boolean values (diff) | |
download | linux-001fab49dd4fcf64b1b8ccecb8656baa3f3f1a9a.tar.xz linux-001fab49dd4fcf64b1b8ccecb8656baa3f3f1a9a.zip |
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>
Diffstat (limited to 'drivers/hid/hid-multitouch.c')
-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) } 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; |