aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/usb/usbdi.c
diff options
context:
space:
mode:
authorJosef Karthauser <joe@FreeBSD.org>2002-04-01 17:05:55 +0000
committerJosef Karthauser <joe@FreeBSD.org>2002-04-01 17:05:55 +0000
commit7b51deb455072850681cb2e4cdc93478b533be42 (patch)
treeb1a5fba13ade70f68de3aaf1599a1966b382cd56 /sys/dev/usb/usbdi.c
parent388f4c1dd072cf3f85610f048b1f4c4293f00890 (diff)
downloadsrc-7b51deb455072850681cb2e4cdc93478b533be42.tar.gz
src-7b51deb455072850681cb2e4cdc93478b533be42.zip
Merge from NetBSD: Make it compile with USB_DEBUG.
Notes
Notes: svn path=/head/; revision=93551
Diffstat (limited to 'sys/dev/usb/usbdi.c')
-rw-r--r--sys/dev/usb/usbdi.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/sys/dev/usb/usbdi.c b/sys/dev/usb/usbdi.c
index 83b1fe68b0f2..4e40eb90af4b 100644
--- a/sys/dev/usb/usbdi.c
+++ b/sys/dev/usb/usbdi.c
@@ -1,4 +1,4 @@
-/* $NetBSD: usbdi.c,v 1.73 2000/05/31 16:14:42 augustss Exp $ */
+/* $NetBSD: usbdi.c,v 1.76 2000/06/06 11:36:21 augustss Exp $ */
/* $FreeBSD$ */
/*
@@ -96,10 +96,9 @@ usbd_finish()
--usbd_nbuses;
}
-Static __inline int usbd_xfer_isread(usbd_xfer_handle xfer);
-Static __inline int
-usbd_xfer_isread(xfer)
- usbd_xfer_handle xfer;
+static __inline int usbd_xfer_isread(usbd_xfer_handle xfer);
+static __inline int
+usbd_xfer_isread(usbd_xfer_handle xfer)
{
if (xfer->rqflags & URQ_REQUEST)
return (xfer->request.bmRequestType & UT_READ);
@@ -110,10 +109,8 @@ usbd_xfer_isread(xfer)
#ifdef USB_DEBUG
void usbd_dump_queue(usbd_pipe_handle);
-
void
-usbd_dump_queue(pipe)
- usbd_pipe_handle pipe;
+usbd_dump_queue(usbd_pipe_handle pipe)
{
usbd_xfer_handle xfer;
@@ -704,7 +701,7 @@ usbd_set_interface(iface, altidx)
if (err)
return (err);
- /* new setting work, we can free old endpoints */
+ /* new setting works, we can free old endpoints */
if (endpoints != NULL)
free(endpoints, M_USB);