PERFORCE change 154773 for review
Weongyo Jeong
weongyo at FreeBSD.org
Mon Dec 15 20:49:56 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=154773
Change 154773 by weongyo at weongyo_ws on 2008/12/16 04:49:04
code cleanup
Affected files ...
.. //depot/projects/ndisusb/sys/compat/ndis/subr_usbd.c#21 edit
Differences ...
==== //depot/projects/ndisusb/sys/compat/ndis/subr_usbd.c#21 (text+ko) ====
@@ -548,6 +548,8 @@
usbd_status status;
urb = usbd_geturb(ip);
+ vcreq = &urb->uu_vcreq;
+
switch (urb->uu_hdr.uuh_func) {
case URB_FUNCTION_CLASS_DEVICE:
type = UT_CLASS | UT_DEVICE;
@@ -578,11 +580,8 @@
break;
}
- vcreq = &urb->uu_vcreq;
- if (!(vcreq->uvc_trans_flags & USBD_TRANSFER_DIRECTION_IN))
- type |= UT_WRITE;
- else
- type |= UT_READ;
+ type |= (vcreq->uvc_trans_flags & USBD_TRANSFER_DIRECTION_IN) ?
+ UT_READ : UT_WRITE;
type |= vcreq->uvc_reserved1;
req.bmRequestType = type;
More information about the p4-projects
mailing list