Date: Fri, 8 Apr 2022 00:03:51 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 11fd7ec0444a - main - pcm hdspe: Remove unused variable. Message-ID: <202204080003.23803p6x086893@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=11fd7ec0444a0c21c1ad1e7686423344f9e7d426 commit 11fd7ec0444a0c21c1ad1e7686423344f9e7d426 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-08 00:01:29 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-08 00:01:29 +0000 pcm hdspe: Remove unused variable. --- sys/dev/sound/pci/hdspe-pcm.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/dev/sound/pci/hdspe-pcm.c b/sys/dev/sound/pci/hdspe-pcm.c index 6e2cccfb0c99..9cd1913353a2 100644 --- a/sys/dev/sound/pci/hdspe-pcm.c +++ b/sys/dev/sound/pci/hdspe-pcm.c @@ -263,7 +263,6 @@ buffer_copy(struct sc_chinfo *ch) struct sc_info *sc; int ssize, dsize; int src, dst; - int length; int n; int i; @@ -272,9 +271,6 @@ buffer_copy(struct sc_chinfo *ch) n = AFMT_CHANNEL(ch->format); /* n channels */ - length = sndbuf_getready(ch->buffer) / - (4 /* Bytes per sample. */ * n); - if (ch->dir == PCMDIR_PLAY) { src = sndbuf_getreadyptr(ch->buffer); } else {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204080003.23803p6x086893>