From owner-p4-projects@FreeBSD.ORG Tue Dec 16 04:49:56 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id B011810656AC; Tue, 16 Dec 2008 04:49:56 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7456810656AA for ; Tue, 16 Dec 2008 04:49:56 +0000 (UTC) (envelope-from weongyo@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 5FF658FC1A for ; Tue, 16 Dec 2008 04:49:56 +0000 (UTC) (envelope-from weongyo@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id mBG4nuIO097655 for ; Tue, 16 Dec 2008 04:49:56 GMT (envelope-from weongyo@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id mBG4nuOP097653 for perforce@freebsd.org; Tue, 16 Dec 2008 04:49:56 GMT (envelope-from weongyo@FreeBSD.org) Date: Tue, 16 Dec 2008 04:49:56 GMT Message-Id: <200812160449.mBG4nuOP097653@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to weongyo@FreeBSD.org using -f From: Weongyo Jeong To: Perforce Change Reviews Cc: Subject: PERFORCE change 154773 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2008 04:49:56 -0000 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;