projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a2b09c
)
HID: wacom: Assign boolean values to a bool variable
author
Jiapeng Zhong
<abaci-bugfix@linux.alibaba.com>
Wed, 20 Jan 2021 07:34:30 +0000
(15:34 +0800)
committer
Jiri Kosina
<jkosina@suse.cz>
Mon, 8 Mar 2021 13:57:00 +0000
(14:57 +0100)
Fix the following coccicheck warnings:
./drivers/hid/wacom_wac.c:2536:2-6: WARNING: Assignment of
0/1 to bool variable.
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Zhong <abaci-bugfix@linux.alibaba.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_wac.c
patch
|
blob
|
history
diff --git
a/drivers/hid/wacom_wac.c
b/drivers/hid/wacom_wac.c
index
44d715c
..
bdd9ba5
100644
(file)
--- a/
drivers/hid/wacom_wac.c
+++ b/
drivers/hid/wacom_wac.c
@@
-2533,7
+2533,7
@@
static void wacom_wac_finger_slot(struct wacom_wac *wacom_wac,
!wacom_wac->shared->is_touch_on) {
if (!wacom_wac->shared->touch_down)
return;
- prox =
0
;
+ prox =
false
;
}
wacom_wac->hid_data.num_received++;