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/uhub.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/uhub.c')
-rw-r--r-- | sys/dev/usb/uhub.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/uhub.c b/sys/dev/usb/uhub.c index 272569798c9..4c116d7cd04 100644 --- a/sys/dev/usb/uhub.c +++ b/sys/dev/usb/uhub.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uhub.c,v 1.92 2019/01/07 14:24:22 mpi Exp $ */ +/* $OpenBSD: uhub.c,v 1.93 2020/02/22 14:01:34 jasper Exp $ */ /* $NetBSD: uhub.c,v 1.64 2003/02/08 03:32:51 ichiro Exp $ */ /* $FreeBSD: src/sys/dev/usb/uhub.c,v 1.18 1999/11/17 22:33:43 n_hibma Exp $ */ @@ -238,7 +238,7 @@ uhub_attach(struct device *parent, struct device *self, void *aux) printf("%s: no endpoint descriptor\n", sc->sc_dev.dv_xname); goto bad; } - if ((ed->bmAttributes & UE_XFERTYPE) != UE_INTERRUPT) { + if (UE_GET_XFERTYPE(ed->bmAttributes) != UE_INTERRUPT) { printf("%s: bad interrupt endpoint\n", sc->sc_dev.dv_xname); goto bad; } |