diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-03-06 03:10:46 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2018-03-06 17:19:13 +0300 |
commit | 001fab49dd4fcf64b1b8ccecb8656baa3f3f1a9a (patch) | |
tree | c4a4638d6cca1137d2f1a0ec5f7e19c01c67d006 /drivers/hid | |
parent | 04230f46025536896b15af22d8fae7fa519f9740 (diff) | |
download | linux-001fab49dd4fcf64b1b8ccecb8656baa3f3f1a9a.tar.xz |
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.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; |