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/if_url.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/if_url.c')
-rw-r--r-- | sys/dev/usb/if_url.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/usb/if_url.c b/sys/dev/usb/if_url.c index 4e5bad338ee..26e7d618148 100644 --- a/sys/dev/usb/if_url.c +++ b/sys/dev/usb/if_url.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_url.c,v 1.85 2020/01/05 08:58:25 jsg Exp $ */ +/* $OpenBSD: if_url.c,v 1.86 2020/02/22 14:01:34 jasper Exp $ */ /* $NetBSD: if_url.c,v 1.6 2002/09/29 10:19:21 martin Exp $ */ /* * Copyright (c) 2001, 2002 @@ -215,13 +215,13 @@ url_attach(struct device *parent, struct device *self, void *aux) printf("%s: couldn't get endpoint %d\n", devname, i); goto bad; } - if ((ed->bmAttributes & UE_XFERTYPE) == UE_BULK && + if (UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK && UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN) sc->sc_bulkin_no = ed->bEndpointAddress; /* RX */ - else if ((ed->bmAttributes & UE_XFERTYPE) == UE_BULK && + else if (UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK && UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_OUT) sc->sc_bulkout_no = ed->bEndpointAddress; /* TX */ - else if ((ed->bmAttributes & UE_XFERTYPE) == UE_INTERRUPT && + else if (UE_GET_XFERTYPE(ed->bmAttributes) == UE_INTERRUPT && UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN) sc->sc_intrin_no = ed->bEndpointAddress; /* Status */ } |