diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2008-09-24 19:09:06 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2008-09-24 19:09:06 +0000 |
commit | 74ae10b2c01de363b3ca9851f92fc13c96a83abc (patch) | |
tree | efd9ad111dea8d86617cf8c6ee21bc93046ecaeb /sys | |
parent | 326269c600fa4ff9243d6e8e4988629967631cd8 (diff) |
remove dead stores and newly created unused variables.
Found by LLVM/Clang Static Analyzer.
ok ratchov@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/auixp.c | 4 | ||||
-rw-r--r-- | sys/dev/pci/auvia.c | 3 | ||||
-rw-r--r-- | sys/dev/pci/azalia.c | 5 |
3 files changed, 3 insertions, 9 deletions
diff --git a/sys/dev/pci/auixp.c b/sys/dev/pci/auixp.c index 88d4dced2f2..9304863aca2 100644 --- a/sys/dev/pci/auixp.c +++ b/sys/dev/pci/auixp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auixp.c,v 1.20 2008/09/17 06:14:09 brad Exp $ */ +/* $OpenBSD: auixp.c,v 1.21 2008/09/24 19:09:05 chl Exp $ */ /* $NetBSD: auixp.c,v 1.9 2005/06/27 21:13:09 thorpej Exp $ */ /* @@ -370,12 +370,10 @@ auixp_set_params(void *hdl, int setmode, int usemode, struct audio_params *play, struct audio_params *rec) { struct auixp_codec *co; - struct auixp_softc *sc; int error; u_int temprate; co = (struct auixp_codec *) hdl; - sc = co->sc; if (setmode & AUMODE_PLAY) { play->factor = 1; play->sw_code = NULL; diff --git a/sys/dev/pci/auvia.c b/sys/dev/pci/auvia.c index d126130ac3a..b671cb43c40 100644 --- a/sys/dev/pci/auvia.c +++ b/sys/dev/pci/auvia.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auvia.c,v 1.40 2008/08/12 06:50:16 jakemsr Exp $ */ +/* $OpenBSD: auvia.c,v 1.41 2008/09/24 19:09:05 chl Exp $ */ /* $NetBSD: auvia.c,v 1.28 2002/11/04 16:38:49 kent Exp $ */ /*- @@ -923,7 +923,6 @@ auvia_build_dma_ops(struct auvia_softc *sc, struct auvia_softc_chan *ch, ch->sc_dma_ops_dma = dp; } - dp = ch->sc_dma_ops_dma; op = ch->sc_dma_ops; while (l) { diff --git a/sys/dev/pci/azalia.c b/sys/dev/pci/azalia.c index 62824f3b011..293d3d7cb9d 100644 --- a/sys/dev/pci/azalia.c +++ b/sys/dev/pci/azalia.c @@ -1,4 +1,4 @@ -/* $OpenBSD: azalia.c,v 1.54 2008/09/22 19:42:07 miod Exp $ */ +/* $OpenBSD: azalia.c,v 1.55 2008/09/24 19:09:05 chl Exp $ */ /* $NetBSD: azalia.c,v 1.20 2006/05/07 08:31:44 kent Exp $ */ /*- @@ -1299,12 +1299,10 @@ azalia_codec_construct_format(codec_t *this, int newdac, int newadc) { const convgroup_t *group; uint32_t bits_rates; - int prev_dac, prev_adc; int pvariation, rvariation; int nbits, c, chan, i, err; nid_t nid; - prev_dac = this->dacs.cur; this->dacs.cur = newdac; group = &this->dacs.groups[this->dacs.cur]; bits_rates = this->w[group->conv[0]].d.audio.bits_rates; @@ -1326,7 +1324,6 @@ azalia_codec_construct_format(codec_t *this, int newdac, int newadc) } pvariation = group->nconv * nbits; - prev_adc = this->adcs.cur; this->adcs.cur = newadc; group = &this->adcs.groups[this->adcs.cur]; bits_rates = this->w[group->conv[0]].d.audio.bits_rates; |