diff options
author | Jiapeng Zhong <abaci-bugfix@linux.alibaba.com> | 2021-01-20 15:34:30 +0800 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2021-03-08 14:57:00 +0100 |
commit | e29c62ffb008829dc8bcc0a2ec438adc25a8255e (patch) | |
tree | 2acf9e8d58e2d603080c014a1e658c42134ffd37 /drivers/hid/wacom_wac.c | |
parent | 2a2b09c867fdac63f430a45051e7bd0c46edc381 (diff) |
HID: wacom: Assign boolean values to a bool variable
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>
Diffstat (limited to 'drivers/hid/wacom_wac.c')
-rw-r--r-- | drivers/hid/wacom_wac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/wacom_wac.c b/drivers/hid/wacom_wac.c index 44d715c12f6a..bdd9ba577150 100644 --- 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++; |