From 4afc92cd6e9828aa9005f8424df6e003ac747e2f Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Wed, 6 Apr 2022 16:45:27 -0700 Subject: ac97_initmixer: Remove write-only variables. --- sys/dev/sound/pcm/ac97.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'sys/dev/sound') 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; } } -- cgit v1.2.3