Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Use UE_GET_XFERTYPE. No functional change.



details:   https://anonhg.NetBSD.org/src/rev/655079b61ba1
branches:  trunk
changeset: 789597:655079b61ba1
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Aug 25 06:16:19 2013 +0000

description:
Use UE_GET_XFERTYPE. No functional change.

diffstat:

 sys/dev/usb/ehci.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r ef3c75fa2f1f -r 655079b61ba1 sys/dev/usb/ehci.c
--- a/sys/dev/usb/ehci.c        Sun Aug 25 06:15:06 2013 +0000
+++ b/sys/dev/usb/ehci.c        Sun Aug 25 06:16:19 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ehci.c,v 1.208 2013/08/21 17:52:10 jakllsch Exp $ */
+/*     $NetBSD: ehci.c,v 1.209 2013/08/25 06:16:19 skrll Exp $ */
 
 /*
  * Copyright (c) 2004-2012 The NetBSD Foundation, Inc.
@@ -53,7 +53,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.208 2013/08/21 17:52:10 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.209 2013/08/25 06:16:19 skrll Exp $");
 
 #include "ohci.h"
 #include "uhci.h"
@@ -1616,7 +1616,7 @@
        ehci_softc_t *sc = dev->bus->hci_private;
        usb_endpoint_descriptor_t *ed = pipe->endpoint->edesc;
        u_int8_t addr = dev->address;
-       u_int8_t xfertype = ed->bmAttributes & UE_XFERTYPE;
+       u_int8_t xfertype = UE_GET_XFERTYPE(ed->bmAttributes);
        struct ehci_pipe *epipe = (struct ehci_pipe *)pipe;
        ehci_soft_qh_t *sqh;
        usbd_status err;



Home | Main Index | Thread Index | Old Index