diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2008-09-25 19:09:17 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2008-09-25 19:09:17 +0000 |
commit | 4c7170d0ee12afde031ca6fbbf6b002767edfa19 (patch) | |
tree | fc416c79b1f9d823222d737f252b83de88ade441 /sys/dev | |
parent | 36ffeb49af418eff258fb9a110de085ac5d31fe9 (diff) |
remove dead stores.
Found by LLVM/Clang Static Analyzer.
ok jakemsr@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/bktr/bktr_audio.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/sys/dev/pci/bktr/bktr_audio.c b/sys/dev/pci/bktr/bktr_audio.c index 385433a3463..cbf45399157 100644 --- a/sys/dev/pci/bktr/bktr_audio.c +++ b/sys/dev/pci/bktr/bktr_audio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bktr_audio.c,v 1.9 2007/06/11 08:10:22 robert Exp $ */ +/* $OpenBSD: bktr_audio.c,v 1.10 2008/09/25 19:09:16 chl Exp $ */ /* $FreeBSD: src/sys/dev/bktr/bktr_audio.c,v 1.8 2000/10/31 13:09:56 roger Exp $ */ /* * This is part of the Driver for Video Capture Cards (Frame grabbers) @@ -112,14 +112,8 @@ set_audio( bktr_ptr_t bktr, int cmd ) switch (cmd) { case AUDIO_TUNER: -#ifdef BKTR_REVERSEMUTE - bktr->audio_mux_select = 3; -#else - bktr->audio_mux_select = 0; -#endif - if (bktr->reverse_mute ) - bktr->audio_mux_select = 0; + bktr->audio_mux_select = 0; else bktr->audio_mux_select = 3; @@ -163,17 +157,10 @@ set_audio( bktr_ptr_t bktr, int cmd ) */ if ( bktr->audio_mute_state == TRUE ) { -#ifdef BKTR_REVERSEMUTE - idx = 0; -#else - idx = 3; -#endif - if (bktr->reverse_mute ) idx = 3; else idx = 0; - } else idx = bktr->audio_mux_select; |