Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Dec 2008 04:49:56 GMT
From:      Weongyo Jeong <weongyo@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 154773 for review
Message-ID:  <200812160449.mBG4nuOP097653@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=154773

Change 154773 by weongyo@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;



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