git: 11fd7ec0444a - main - pcm hdspe: Remove unused variable.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Fri, 08 Apr 2022 00:03:51 UTC
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 {