Skip to content

Commit 09a5c34

Browse files
jc-boydJiri Kosina
authored andcommitted
HID: hid-input: Add parentheses to quell gcc warning
GCC reports a -Wlogical-not-parentheses warning here; therefore add parentheses to shut it up and to express our intent more. Signed-off-by: James C Boyd <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 6e01d53 commit 09a5c34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hid/hid-input.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1157,7 +1157,7 @@ void hidinput_hid_event(struct hid_device *hid, struct hid_field *field, struct
11571157
return;
11581158

11591159
/* report the usage code as scancode if the key status has changed */
1160-
if (usage->type == EV_KEY && !!test_bit(usage->code, input->key) != value)
1160+
if (usage->type == EV_KEY && (!!test_bit(usage->code, input->key)) != value)
11611161
input_event(input, EV_MSC, MSC_SCAN, usage->hid);
11621162

11631163
input_event(input, usage->type, usage->code, value);

0 commit comments

Comments
 (0)