svn commit: r224547 - projects/hid/sys/dev/usb
Alexander Motin
mav at FreeBSD.org
Sun Jul 31 14:38:26 UTC 2011
Author: mav
Date: Sun Jul 31 14:38:25 2011
New Revision: 224547
URL: http://svn.freebsd.org/changeset/base/224547
Log:
Do not block zero report id. It is correct value for devices with single ID.
Modified:
projects/hid/sys/dev/usb/usb_request.c
Modified: projects/hid/sys/dev/usb/usb_request.c
==============================================================================
--- projects/hid/sys/dev/usb/usb_request.c Sun Jul 31 13:49:15 2011 (r224546)
+++ projects/hid/sys/dev/usb/usb_request.c Sun Jul 31 14:38:25 2011 (r224547)
@@ -1769,7 +1769,7 @@ usbd_req_get_report(struct usb_device *u
struct usb_interface *iface = usbd_get_iface(udev, iface_index);
struct usb_device_request req;
- if ((iface == NULL) || (iface->idesc == NULL) || (id == 0)) {
+ if ((iface == NULL) || (iface->idesc == NULL)) {
return (USB_ERR_INVAL);
}
DPRINTFN(5, "len=%d\n", len);
More information about the svn-src-projects
mailing list