Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Apr 2022 04:32:46 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: ad1b7fd71429 - main - hdspe_dmapsetmap: eliminate write only variable sc
Message-ID:  <202204050432.2354WkVu009440@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204050432.2354WkVu009440>