diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2016-12-05 07:07:44 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2016-12-05 07:07:44 +0000 |
commit | 7f3fcabe6fbc8cde8dcd4409bb6875fefd1d0798 (patch) | |
tree | c3382c86192e26bb97290ecc60093da93bd6aeeb /sys/dev | |
parent | b393353bc4d1266995aeb19280b3194b67882745 (diff) |
Remove unused variable. From Michael W. Bombardieri <mb@ii.net>. Thanks!
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/usb/uaudio.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/usb/uaudio.c b/sys/dev/usb/uaudio.c index cbec23e8c2d..00c141dc238 100644 --- a/sys/dev/usb/uaudio.c +++ b/sys/dev/usb/uaudio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uaudio.c,v 1.119 2016/11/16 07:02:48 ratchov Exp $ */ +/* $OpenBSD: uaudio.c,v 1.120 2016/12/05 07:07:43 ratchov Exp $ */ /* $NetBSD: uaudio.c,v 1.90 2004/10/29 17:12:53 kent Exp $ */ /* @@ -1489,7 +1489,6 @@ uaudio_identify(struct uaudio_softc *sc, const usb_config_descriptor_t *cdesc) void uaudio_add_alt(struct uaudio_softc *sc, const struct as_info *ai) { - size_t len; struct as_info *nai; nai = mallocarray(sc->sc_nalts + 1, sizeof(*ai), M_USBDEV, M_NOWAIT); @@ -1497,7 +1496,6 @@ uaudio_add_alt(struct uaudio_softc *sc, const struct as_info *ai) printf("%s: no memory\n", __func__); return; } - len = sizeof(*ai) * (sc->sc_nalts + 1); /* Copy old data, if there was any */ if (sc->sc_nalts != 0) { |