Skip to content

Commit

Permalink
HID: wacom: Assign boolean values to a bool variable
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jiapeng Zhong <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
  • Loading branch information
Jiapeng Zhong authored and Jiri Kosina committed Mar 8, 2021
1 parent 2a2b09c commit e29c62f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hid/wacom_wac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit e29c62f

Please sign in to comment.