summaryrefslogtreecommitdiff
path: root/sys/dev/usb/usbdi.c
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/usb/usbdi.c
parentf0069c510c94d041d7dc06d9e85669593a26d6ec (diff)
Remove unused usbd_get_buffer() function.
Diffstat (limited to 'sys/dev/usb/usbdi.c')
-rw-r--r--sys/dev/usb/usbdi.c10
1 files changed, 1 insertions, 9 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)
{