Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Apr 2022 04:32:39 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: 33985865b2d8 - main - pcmcsa_attach: eliminate write only variable unit
Message-ID:  <202204050432.2354WdeD009284@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=33985865b2d8eafc9fc1d065dc06344c9c95c56c

commit 33985865b2d8eafc9fc1d065dc06344c9c95c56c
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-04-05 02:17:30 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-04-05 04:30:07 +0000

    pcmcsa_attach: eliminate write only variable unit
    
    Sponsored by:           Netflix
---
 sys/dev/sound/pci/csapcm.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sys/dev/sound/pci/csapcm.c b/sys/dev/sound/pci/csapcm.c
index 7fd55291d876..e71821a50c6a 100644
--- a/sys/dev/sound/pci/csapcm.c
+++ b/sys/dev/sound/pci/csapcm.c
@@ -777,13 +777,11 @@ pcmcsa_attach(device_t dev)
 {
 	struct csa_info *csa;
 	csa_res *resp;
-	int unit;
 	char status[SND_STATUSLEN];
 	struct ac97_info *codec;
 	struct sndcard_func *func;
 
 	csa = malloc(sizeof(*csa), M_DEVBUF, M_WAITOK | M_ZERO);
-	unit = device_get_unit(dev);
 	func = device_get_ivars(dev);
 	csa->binfo = func->varinfo;
 	/*



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