aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorVladimir Kondratyev <vladimir@kondratyev.su>2020-12-24 11:46:24 +0000
committerVladimir Kondratyev <wulf@FreeBSD.org>2021-01-07 23:18:41 +0000
commit3f270928542192dd1cb14429290ef97ab3f7fa94 (patch)
treec3f35018cffbfe618cf9099cf704da828d7e8f38 /sys/dev/usb
parent5cc52631b3b88dfc36d8049dc8bece8573c5f9af (diff)
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/usb_hid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/usb_hid.c b/sys/dev/usb/usb_hid.c
index adba8e812417..dd0c8d4b42ac 100644
--- a/sys/dev/usb/usb_hid.c
+++ b/sys/dev/usb/usb_hid.c
@@ -622,7 +622,7 @@ hid_locate(const void *desc, usb_size_t size, int32_t u, enum hid_kind k,
struct hid_item h;
for (d = hid_start_parse(desc, size, 1 << k); hid_get_item(d, &h);) {
- if (h.kind == k && !(h.flags & HIO_CONST) && h.usage == u) {
+ if (h.kind == k && h.usage == u) {
if (index--)
continue;
if (loc != NULL)