summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2021-02-24 04:06:46 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2021-02-24 04:06:46 +0000
commitb6addbf69d6366a342c53568d1f447060e80f323 (patch)
tree7c9e8d7bef4327fe29067b271a764053feb1161d /sys/dev/usb
parent83d5e8227c6bc7ec5ba7902e510371317b4871cd (diff)
remove unused usbd_get_device_string()
ok mpi@
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/usb_subr.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/sys/dev/usb/usb_subr.c b/sys/dev/usb/usb_subr.c
index 1fdfdcae535..a11bc448ece 100644
--- a/sys/dev/usb/usb_subr.c
+++ b/sys/dev/usb/usb_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: usb_subr.c,v 1.154 2021/02/01 09:21:51 mglocker Exp $ */
+/* $OpenBSD: usb_subr.c,v 1.155 2021/02/24 04:06:45 jsg Exp $ */
/* $NetBSD: usb_subr.c,v 1.103 2003/01/10 11:19:13 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/usb_subr.c,v 1.18 1999/11/17 22:33:47 n_hibma Exp $ */
@@ -61,7 +61,6 @@ extern int usbdebug;
usbd_status usbd_set_config(struct usbd_device *, int);
void usbd_devinfo(struct usbd_device *, int, char *, size_t);
-char *usbd_get_device_string(struct usbd_device *, uByte);
char *usbd_get_string(struct usbd_device *, int, char *, size_t);
int usbd_getnewaddr(struct usbd_bus *);
int usbd_print(void *, const char *);
@@ -212,25 +211,6 @@ usbd_trim_spaces(char *p)
*e = 0; /* kill trailing spaces */
}
-char *
-usbd_get_device_string(struct usbd_device *dev, uByte index)
-{
- char *buf;
-
- buf = malloc(USB_MAX_STRING_LEN, M_USB, M_NOWAIT);
- if (buf == NULL)
- return (NULL);
-
- if (usbd_get_string(dev, index, buf, USB_MAX_STRING_LEN) != NULL) {
- usbd_trim_spaces(buf);
- } else {
- free(buf, M_USB, USB_MAX_STRING_LEN);
- buf = NULL;
- }
-
- return (buf);
-}
-
int
usbd_cache_devinfo(struct usbd_device *dev)
{