git: ad1b7fd71429 - main - hdspe_dmapsetmap: eliminate write only variable sc

From: Warner Losh <imp_at_FreeBSD.org>
Date: Tue, 05 Apr 2022 04:32:46 UTC
The branch main has been updated by imp:

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

commit ad1b7fd71429468430e379fa0a4152f23b0af90a
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-04-05 02:25:54 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-04-05 04:30:22 +0000

    hdspe_dmapsetmap: eliminate write only variable sc
    
    Sponsored by:           Netflix
---
 sys/dev/sound/pci/hdspe.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/sys/dev/sound/pci/hdspe.c b/sys/dev/sound/pci/hdspe.c
index f91e6f6d4931..48e72e227aeb 100644
--- a/sys/dev/sound/pci/hdspe.c
+++ b/sys/dev/sound/pci/hdspe.c
@@ -122,10 +122,6 @@ hdspe_intr(void *p)
 static void
 hdspe_dmapsetmap(void *arg, bus_dma_segment_t *segs, int nseg, int error)
 {
-	struct sc_info *sc;
-
-	sc = (struct sc_info *)arg;
-
 #if 0
 	device_printf(sc->dev, "hdspe_dmapsetmap()\n");
 #endif