aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2022-04-05 02:17:30 +0000
committerWarner Losh <imp@FreeBSD.org>2022-04-05 04:30:07 +0000
commit33985865b2d8eafc9fc1d065dc06344c9c95c56c (patch)
treea90657bb7d81657d24988ff924ac209c1ca72491
parent3e423419cf02c9e314b66b51c1fb0f987839de5e (diff)
downloadsrc-33985865b2d8eafc9fc1d065dc06344c9c95c56c.tar.gz
src-33985865b2d8eafc9fc1d065dc06344c9c95c56c.zip
pcmcsa_attach: eliminate write only variable unit
Sponsored by: Netflix
-rw-r--r--sys/dev/sound/pci/csapcm.c2
1 files changed, 0 insertions, 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;
/*