The branch main has been updated by jhb:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=11fd7ec0444a0c21c1ad1e7686423344f9e7d426

commit 11fd7ec0444a0c21c1ad1e7686423344f9e7d426
Author:     John Baldwin <[email protected]>
AuthorDate: 2022-04-08 00:01:29 +0000
Commit:     John Baldwin <[email protected]>
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 {

Reply via email to