diff options
author | John Baldwin <jhb@FreeBSD.org> | 2022-04-06 23:45:27 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2022-04-06 23:45:27 +0000 |
commit | 4afc92cd6e9828aa9005f8424df6e003ac747e2f (patch) | |
tree | 87b6a3a56e6b3dab1f7ef2b926ceeb77222315f7 /sys/dev/sound | |
parent | 546629073d4e40947a0b169a8d759d9bb12fb732 (diff) | |
download | src-4afc92cd6e9828aa9005f8424df6e003ac747e2f.tar.gz src-4afc92cd6e9828aa9005f8424df6e003ac747e2f.zip |
ac97_initmixer: Remove write-only variables.
Diffstat (limited to 'sys/dev/sound')
-rw-r--r-- | sys/dev/sound/pcm/ac97.c | 4 |
1 files changed, 0 insertions, 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; } } |