summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2013-04-19 08:54:51 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2013-04-19 08:54:51 +0000
commit1c324f611fc1317fdabbb42a2f01642912660de5 (patch)
treeaff1e73c756d488c53054f86ee426f7d80328460 /sys/dev
parentf0069c510c94d041d7dc06d9e85669593a26d6ec (diff)
Remove unused usbd_get_buffer() function.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/usbdi.c10
-rw-r--r--sys/dev/usb/usbdi.h3
2 files changed, 2 insertions, 11 deletions
diff --git a/sys/dev/usb/usbdi.c b/sys/dev/usb/usbdi.c
index 45f9442199f..8462b7568c7 100644
--- a/sys/dev/usb/usbdi.c
+++ b/sys/dev/usb/usbdi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: usbdi.c,v 1.50 2013/04/15 09:23:02 mglocker Exp $ */
+/* $OpenBSD: usbdi.c,v 1.51 2013/04/19 08:54:49 mpi Exp $ */
/* $NetBSD: usbdi.c,v 1.103 2002/09/27 15:37:38 provos Exp $ */
/* $FreeBSD: src/sys/dev/usb/usbdi.c,v 1.28 1999/11/17 22:33:49 n_hibma Exp $ */
@@ -409,14 +409,6 @@ usbd_free_buffer(struct usbd_xfer *xfer)
xfer->device->bus->methods->freem(xfer->device->bus, &xfer->dmabuf);
}
-void *
-usbd_get_buffer(struct usbd_xfer *xfer)
-{
- if (!(xfer->rqflags & URQ_DEV_DMABUF))
- return (0);
- return (KERNADDR(&xfer->dmabuf, 0));
-}
-
struct usbd_xfer *
usbd_alloc_xfer(struct usbd_device *dev)
{
diff --git a/sys/dev/usb/usbdi.h b/sys/dev/usb/usbdi.h
index be2804e2907..4dba8d1d05e 100644
--- a/sys/dev/usb/usbdi.h
+++ b/sys/dev/usb/usbdi.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: usbdi.h,v 1.49 2013/04/18 08:44:39 mglocker Exp $ */
+/* $OpenBSD: usbdi.h,v 1.50 2013/04/19 08:54:50 mpi Exp $ */
/* $NetBSD: usbdi.h,v 1.62 2002/07/11 21:14:35 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/usbdi.h,v 1.18 1999/11/17 22:33:49 n_hibma Exp $ */
@@ -115,7 +115,6 @@ usbd_status usbd_device2interface_handle(struct usbd_device *dev,
struct usbd_device *usbd_pipe2device_handle(struct usbd_pipe *);
void *usbd_alloc_buffer(struct usbd_xfer *xfer, u_int32_t size);
void usbd_free_buffer(struct usbd_xfer *xfer);
-void *usbd_get_buffer(struct usbd_xfer *xfer);
usbd_status usbd_open_pipe_intr(struct usbd_interface *iface, u_int8_t address,
u_int8_t flags, struct usbd_pipe **pipe, void *priv,
void *buffer, u_int32_t length, usbd_callback, int);