From a0d31696966c80960475aa5105bc7bfcd7a0b3d9 Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Tue, 22 Jan 2019 14:25:57 +0000 Subject: Remove unused variable. --- sys/dev/usb/usb_subr.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/dev/usb/usb_subr.c') diff --git a/sys/dev/usb/usb_subr.c b/sys/dev/usb/usb_subr.c index 7662c178a07..064326e6b81 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.146 2018/11/27 14:56:09 mpi Exp $ */ +/* $OpenBSD: usb_subr.c,v 1.147 2019/01/22 14:25:56 mpi 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 $ */ @@ -862,7 +862,7 @@ usbd_probe_and_attach(struct device *parent, struct usbd_device *dev, int port, { struct usb_attach_arg uaa; usb_device_descriptor_t *dd = &dev->ddesc; - int i, confi, nifaces, len; + int i, confi, nifaces; usbd_status err; struct device *dv; struct usbd_interface **ifaces; @@ -940,7 +940,6 @@ usbd_probe_and_attach(struct device *parent, struct usbd_device *dev, int port, goto fail; } dev->nsubdev = nifaces + 2; - len = (nifaces + 2) * sizeof(dv); for (i = 0; i < nifaces; i++) { if (usbd_iface_claimed(dev, i)) -- cgit v1.2.3