git: 4afc92cd6e98 - main - ac97_initmixer: Remove write-only variables.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 06 Apr 2022 23:46:00 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=4afc92cd6e9828aa9005f8424df6e003ac747e2f
commit 4afc92cd6e9828aa9005f8424df6e003ac747e2f
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-06 23:45:27 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-06 23:45:27 +0000
ac97_initmixer: Remove write-only variables.
---
sys/dev/sound/pcm/ac97.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/sys/dev/sound/pcm/ac97.c b/sys/dev/sound/pcm/ac97.c
index 3dc614083660..7dfdc91c598f 100644
--- a/sys/dev/sound/pcm/ac97.c
+++ b/sys/dev/sound/pcm/ac97.c
@@ -603,7 +603,6 @@ ac97_initmixer(struct ac97_info *codec)
const char *cname, *vname;
char desc[80];
device_t pdev;
- u_int8_t model, step;
unsigned i, j, k, bit, old;
u_int32_t id;
int reg;
@@ -655,15 +654,12 @@ ac97_initmixer(struct ac97_info *codec)
codec_patch = NULL;
cname = NULL;
- model = step = 0;
for (i = 0; ac97codecid[i].id; i++) {
u_int32_t modelmask = 0xffffffff ^ ac97codecid[i].stepmask;
if ((ac97codecid[i].id & modelmask) == (id & modelmask)) {
codec->noext = ac97codecid[i].noext;
codec_patch = ac97codecid[i].patch;
cname = ac97codecid[i].name;
- model = (id & modelmask) & 0xff;
- step = (id & ~modelmask) & 0xff;
break;
}
}