projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04230f4
)
HID: hid-multitouch: Use true and false for boolean values
author
Gustavo A. R. Silva
<gustavo@embeddedor.com>
Tue, 6 Mar 2018 00:10:46 +0000
(18:10 -0600)
committer
Jiri Kosina
<jkosina@suse.cz>
Tue, 6 Mar 2018 14:19:13 +0000
(15:19 +0100)
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>
drivers/hid/hid-multitouch.c
patch
|
blob
|
history
diff --git
a/drivers/hid/hid-multitouch.c
b/drivers/hid/hid-multitouch.c
index 3b4739bde05d3b6dcd2417beeda479d00cb1afc7..d378057191fd7c80d492bdd1d8986c8b738364fd 100644
(file)
--- 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;