diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2019-01-22 14:25:57 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2019-01-22 14:25:57 +0000 |
commit | a0d31696966c80960475aa5105bc7bfcd7a0b3d9 (patch) | |
tree | c27678e05dbed3ece60ddc8f554523ae033de8fb /sys/dev/usb/usb_subr.c | |
parent | f15018dc662e1bb1e8866470f7d30c3246969886 (diff) |
Remove unused variable.
Diffstat (limited to 'sys/dev/usb/usb_subr.c')
-rw-r--r-- | sys/dev/usb/usb_subr.c | 5 |
1 files changed, 2 insertions, 3 deletions
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)) |