From 9d1e72fff786dfa98cc56ffe06b7e4221865f82d Mon Sep 17 00:00:00 2001 From: anton Date: Fri, 10 Sep 2021 05:46:01 +0000 Subject: [PATCH] Remove unused repsizes array. ok jcs@ as part of a larger diff --- sys/dev/usb/uhidev.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/dev/usb/uhidev.c b/sys/dev/usb/uhidev.c index cbd0b8336f6..d67b87ee3fd 100644 --- a/sys/dev/usb/uhidev.c +++ b/sys/dev/usb/uhidev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uhidev.c,v 1.92 2021/03/18 09:21:53 anton Exp $ */ +/* $OpenBSD: uhidev.c,v 1.93 2021/09/10 05:46:01 anton Exp $ */ /* $NetBSD: uhidev.c,v 1.14 2003/03/11 16:44:00 augustss Exp $ */ /* @@ -142,7 +142,7 @@ uhidev_attach(struct device *parent, struct device *self, void *aux) usb_endpoint_descriptor_t *ed; struct uhidev_attach_arg uha; int size, nrepid, repid, repsz; - int i, repsizes[256]; + int i; void *desc = NULL; struct device *dev; @@ -241,7 +241,6 @@ uhidev_attach(struct device *parent, struct device *self, void *aux) for (repid = 0; repid < nrepid; repid++) { repsz = hid_report_size(desc, size, hid_input, repid); DPRINTF(("uhidev_match: repid=%d, repsz=%d\n", repid, repsz)); - repsizes[repid] = repsz; if (repsz > sc->sc_isize) sc->sc_isize = repsz; } -- 2.20.1