aboutsummaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb_hid.c
diff options
context:
space:
mode:
authorAndrew Thompson <thompsa@FreeBSD.org>2009-03-13 22:28:37 +0000
committerAndrew Thompson <thompsa@FreeBSD.org>2009-03-13 22:28:37 +0000
commit3f67dc0f461bede6c9977b7e85d21bb521b25301 (patch)
tree76482086a40fc3a193d206ff66c4b6d8dfc6eeb3 /sys/dev/usb/usb_hid.c
parent470736a0612be349e590fe52ce9a656cd269f4b4 (diff)
downloadsrc-3f67dc0f461bede6c9977b7e85d21bb521b25301.tar.gz
src-3f67dc0f461bede6c9977b7e85d21bb521b25301.zip
HID usage minimum can be equal to the maximum.
Submitted by: Hans Petter Selasky Tested by: Andreas Tobler
Notes
Notes: svn path=/head/; revision=189776
Diffstat (limited to 'sys/dev/usb/usb_hid.c')
-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 5ac193015be7..f79414a24fcf 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;