diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2012-05-07 11:12:55 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2012-05-07 11:12:55 +0000 |
commit | 22964f8da629d6f920137721a6f1fe09eaff50c1 (patch) | |
tree | 151f0d5abfc9aecb73bfd0901589894a185e0935 /usr.sbin | |
parent | c22f86d7362985fbc9771122412f72d80bd1cdd1 (diff) |
Remove leftovers from last commit, getdevicedesc() cannot be used now
that the bus node is open read-only.
ok mikeb@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/usbdevs/usbdevs.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/usr.sbin/usbdevs/usbdevs.c b/usr.sbin/usbdevs/usbdevs.c index e1c75ccbe2a..52ccce99f1c 100644 --- a/usr.sbin/usbdevs/usbdevs.c +++ b/usr.sbin/usbdevs/usbdevs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: usbdevs.c,v 1.20 2011/01/16 00:04:47 jakemsr Exp $ */ +/* $OpenBSD: usbdevs.c,v 1.21 2012/05/07 11:12:54 mpi Exp $ */ /* $NetBSD: usbdevs.c,v 1.19 2002/02/21 00:34:31 christos Exp $ */ /* @@ -47,7 +47,6 @@ int showdevs = 0; void usage(void); void usbdev(int f, int a, int rec); -int getdevicedesc(int, int, usb_device_descriptor_t *); void usbdump(int f); void dumpone(char *name, int f, int addr); int main(int, char **); @@ -147,25 +146,6 @@ usbdev(int f, int a, int rec) } } -int -getdevicedesc(int f, int addr, usb_device_descriptor_t *d) -{ - struct usb_ctl_request req; - int r; - - req.ucr_addr = addr; - req.ucr_request.bmRequestType = UT_READ_DEVICE; - req.ucr_request.bRequest = UR_GET_DESCRIPTOR; - USETW2(req.ucr_request.wValue, UDESC_DEVICE, 0); - USETW(req.ucr_request.wIndex, 0); - USETW(req.ucr_request.wLength, USB_DEVICE_DESCRIPTOR_SIZE); - req.ucr_data = d; - req.ucr_flags = 0; - if ((r = ioctl(f, USB_REQUEST, &req)) == -1) - perror("getdevicedesc: ioctl"); - return (r != -1); -} - void usbdump(int f) { |