Make use of usbd_xfer_isread() instead of rerolling it everywhere.
authormpi <mpi@openbsd.org>
Sun, 4 May 2014 14:42:36 +0000 (14:42 +0000)
committermpi <mpi@openbsd.org>
Sun, 4 May 2014 14:42:36 +0000 (14:42 +0000)
commit880918e8c3700f315cfeb7da0b25c066dad3c028
tree06ad975a435cb7e0146d298807e5321a9a157883
parenta4415955758869021a6fb4b726f59bc14c875766
Make use of usbd_xfer_isread() instead of rerolling it everywhere.

This has the side effect of simplifying and reducing the differences
between the various *hci_alloc_*_chain() functions since they are the
principal place where we want to known if the transfer is a read or a
write.
sys/dev/usb/ehci.c
sys/dev/usb/ohci.c
sys/dev/usb/uhci.c