diff options
author | thompsa <thompsa@FreeBSD.org> | 2009-03-13 22:28:37 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2009-03-13 22:28:37 +0000 |
commit | 8a46d7d8003b940d76e715087a14b307496538db (patch) | |
tree | 76482086a40fc3a193d206ff66c4b6d8dfc6eeb3 /sys/dev/usb | |
parent | c0eea162c5685e85d2836609191195917bb8fdbd (diff) | |
download | FreeBSD-src-8a46d7d8003b940d76e715087a14b307496538db.zip FreeBSD-src-8a46d7d8003b940d76e715087a14b307496538db.tar.gz |
HID usage minimum can be equal to the maximum.
Submitted by: Hans Petter Selasky
Tested by: Andreas Tobler
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/usb_hid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/usb_hid.c b/sys/dev/usb/usb_hid.c index 5ac1930..f79414a 100644 --- a/sys/dev/usb/usb_hid.c +++ b/sys/dev/usb/usb_hid.c @@ -441,7 +441,7 @@ hid_get_item(struct hid_data *s, struct hid_item *h) /* sanity check */ if ((s->nusage < MAXUSAGE) && - (c->usage_minimum < c->usage_maximum)) { + (c->usage_minimum <= c->usage_maximum)) { /* add usage range */ s->usages_min[s->nusage] = c->usage_minimum; |