Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Mar 2009 22:28:37 +0000 (UTC)
From:      Andrew Thompson <thompsa@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r189776 - head/sys/dev/usb
Message-ID:  <200903132228.n2DMSb8J074752@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: thompsa
Date: Fri Mar 13 22:28:37 2009
New Revision: 189776
URL: http://svn.freebsd.org/changeset/base/189776

Log:
  HID usage minimum can be equal to the maximum.
  
  Submitted by:	Hans Petter Selasky
  Tested by:	Andreas Tobler

Modified:
  head/sys/dev/usb/usb_hid.c

Modified: head/sys/dev/usb/usb_hid.c
==============================================================================
--- head/sys/dev/usb/usb_hid.c	Fri Mar 13 19:05:34 2009	(r189775)
+++ head/sys/dev/usb/usb_hid.c	Fri Mar 13 22:28:37 2009	(r189776)
@@ -441,7 +441,7 @@ hid_get_item(struct hid_data *s, struct 
 
 				/* 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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903132228.n2DMSb8J074752>