summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2016-11-08 06:09:57 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2016-11-08 06:09:57 +0000
commitd165a94c4eaf92611e445835d30080d5213839cd (patch)
treee8e1392d24012acd030b9d84dd30df0983500bc9 /sys
parent9bca051b9b9311c9b343bd5f12a0f7d58b19dd1a (diff)
Remove dead store. From Michael W. Bombardieri <mb at ii.net>. Thanks.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb/uaudio.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/usb/uaudio.c b/sys/dev/usb/uaudio.c
index 2ec65b6200a..68127184d4e 100644
--- a/sys/dev/usb/uaudio.c
+++ b/sys/dev/usb/uaudio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uaudio.c,v 1.117 2016/10/27 05:08:23 ratchov Exp $ */
+/* $OpenBSD: uaudio.c,v 1.118 2016/11/08 06:09:56 ratchov Exp $ */
/* $NetBSD: uaudio.c,v 1.90 2004/10/29 17:12:53 kent Exp $ */
/*
@@ -2900,7 +2900,7 @@ void
uaudio_chan_rtransfer(struct chan *ch)
{
struct chanbuf *cb;
- int i, size, residue, total;
+ int i, size, total;
if (usbd_is_dying(ch->sc->sc_udev))
return;
@@ -2911,7 +2911,6 @@ uaudio_chan_rtransfer(struct chan *ch)
ch->curchanbuf = 0;
/* Compute the size of each frame in the next transfer. */
- residue = ch->residue;
total = 0;
for (i = 0; i < ch->nframes; i++) {
size = ch->bytes_per_frame;
@@ -2919,7 +2918,6 @@ uaudio_chan_rtransfer(struct chan *ch)
cb->offsets[i] = total;
total += size;
}
- ch->residue = residue;
cb->size = total;
#ifdef UAUDIO_DEBUG