summaryrefslogtreecommitdiffstats
path: root/drivers/hid
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-03-06 01:10:46 +0100
committerJiri Kosina <jkosina@suse.cz>2018-03-06 15:19:13 +0100
commit001fab49dd4fcf64b1b8ccecb8656baa3f3f1a9a (patch)
treec4a4638d6cca1137d2f1a0ec5f7e19c01c67d006 /drivers/hid
parentHID: hid-ntrig: use true and false for boolean values (diff)
downloadlinux-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')
-rw-r--r--drivers/hid/hid-multitouch.c2
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;