diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2018-07-09 20:06:13 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2018-07-09 20:06:13 +0000 |
commit | d347020c5419fcb6b19160d6c331478521c7d5e9 (patch) | |
tree | c142b78340856a2d9967e6b0a0b42d1d747e7590 /sys/dev | |
parent | d890090946900b8dbcb679c29742aabd0ccde847 (diff) |
use UE_GET_XFERTYPE(); no binary change
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/usb/uonerng.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/uonerng.c b/sys/dev/usb/uonerng.c index 9e59988a187..1958508635a 100644 --- a/sys/dev/usb/uonerng.c +++ b/sys/dev/usb/uonerng.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uonerng.c,v 1.3 2018/04/28 15:44:59 jasper Exp $ */ +/* $OpenBSD: uonerng.c,v 1.4 2018/07/09 20:06:12 jasper Exp $ */ /* * Copyright (C) 2015 Devin Reade <gdr@gno.org> * Copyright (C) 2015 Sean Levy <attila@stalphonsos.com> @@ -222,10 +222,10 @@ uonerng_attach(struct device *parent, struct device *self, void *aux) goto fail; } if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && - (ed->bmAttributes & UE_XFERTYPE) == UE_BULK) { + UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) { ep_ibulk = ed->bEndpointAddress; } else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_OUT && - (ed->bmAttributes & UE_XFERTYPE) == UE_BULK) { + UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) { ep_obulk = ed->bEndpointAddress; } } |