diff options
author | 2020-02-22 14:01:34 +0000 | |
---|---|---|
committer | 2020-02-22 14:01:34 +0000 | |
commit | f74c7769a68bba41fa7e7e634d34d8293035557a (patch) | |
tree | 1a46f4d33110a2ad8096b99d4ada6d44acdac8c5 /sys/dev/usb/xhci.c | |
parent | regen (diff) | |
download | wireguard-openbsd-f74c7769a68bba41fa7e7e634d34d8293035557a.tar.xz wireguard-openbsd-f74c7769a68bba41fa7e7e634d34d8293035557a.zip |
use the UE_GET_XFERTYPE macro where applicable
ok mpi@
Diffstat (limited to 'sys/dev/usb/xhci.c')
-rw-r--r-- | sys/dev/usb/xhci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/xhci.c b/sys/dev/usb/xhci.c index d6b62b1f997..09f669cc122 100644 --- a/sys/dev/usb/xhci.c +++ b/sys/dev/usb/xhci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xhci.c,v 1.111 2020/01/22 02:25:11 krw Exp $ */ +/* $OpenBSD: xhci.c,v 1.112 2020/02/22 14:01:35 jasper Exp $ */ /* * Copyright (c) 2014-2015 Martin Pieuchot @@ -1225,7 +1225,7 @@ xhci_get_txinfo(struct xhci_softc *sc, struct usbd_pipe *pipe) usb_endpoint_descriptor_t *ed = pipe->endpoint->edesc; uint32_t mep, atl, mps = UGETW(ed->wMaxPacketSize); - switch (ed->bmAttributes & UE_XFERTYPE) { + switch (UE_GET_XFERTYPE(ed->bmAttributes)) { case UE_CONTROL: mep = 0; atl = 8; |