PERFORCE change 166157 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Thu Jul 16 08:28:05 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=166157
Change 166157 by hselasky at hselasky_laptop001 on 2009/07/16 08:27:54
Style nit.
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb/usb_request.c#24 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb/usb_request.c#24 (text+ko) ====
@@ -1059,9 +1059,9 @@
struct usb_interface *iface = usbd_get_iface(udev, iface_index);
struct usb_device_request req;
- if ((iface == NULL) || (iface->idesc == NULL)) {
+ if ((iface == NULL) || (iface->idesc == NULL))
return (USB_ERR_INVAL);
- }
+
req.bmRequestType = UT_READ_INTERFACE;
req.bRequest = UR_GET_INTERFACE;
USETW(req.wValue, 0);
@@ -1085,9 +1085,9 @@
struct usb_interface *iface = usbd_get_iface(udev, iface_index);
struct usb_device_request req;
- if ((iface == NULL) || (iface->idesc == NULL)) {
+ if ((iface == NULL) || (iface->idesc == NULL))
return (USB_ERR_INVAL);
- }
+
req.bmRequestType = UT_WRITE_INTERFACE;
req.bRequest = UR_SET_INTERFACE;
req.wValue[0] = alt_no;
More information about the p4-projects
mailing list