summaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2008-03-17 10:23:35 +0100
committerTakashi Iwai <tiwai@suse.de>2008-04-24 12:00:25 +0200
commitb32300a4ce78b4df92f33c455ffe644b36f0ff1a (patch)
tree467044d7a2fe84aa2c5a0f36d94788741acd8b70 /sound/pci
parent[ALSA] ice1724 - Fix return codes in some pointis callbacks (diff)
downloadlinux-b32300a4ce78b4df92f33c455ffe644b36f0ff1a.tar.xz
linux-b32300a4ce78b4df92f33c455ffe644b36f0ff1a.zip
[ALSA] sound/pci: remove unused variable
The variable is_capture is initialized but never used otherwise. The semantic patch that makes this change is as follows: (http://www.emn.fr/x-info/coccinelle/) // <smpl> @@ type T; identifier i; constant C; @@ ( extern T i; | - T i; <+... when != i - i = C; ...+> ) // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/pcxhr/pcxhr.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/pci/pcxhr/pcxhr.c b/sound/pci/pcxhr/pcxhr.c
index 9d5bb76229a8..beed5818338c 100644
--- a/sound/pci/pcxhr/pcxhr.c
+++ b/sound/pci/pcxhr/pcxhr.c
@@ -846,7 +846,6 @@ static int pcxhr_open(struct snd_pcm_substream *subs)
struct pcxhr_mgr *mgr = chip->mgr;
struct snd_pcm_runtime *runtime = subs->runtime;
struct pcxhr_stream *stream;
- int is_capture;
mutex_lock(&mgr->setup_mutex);
@@ -856,12 +855,10 @@ static int pcxhr_open(struct snd_pcm_substream *subs)
if( subs->stream == SNDRV_PCM_STREAM_PLAYBACK ) {
snd_printdd("pcxhr_open playback chip%d subs%d\n",
chip->chip_idx, subs->number);
- is_capture = 0;
stream = &chip->playback_stream[subs->number];
} else {
snd_printdd("pcxhr_open capture chip%d subs%d\n",
chip->chip_idx, subs->number);
- is_capture = 1;
if (mgr->mono_capture)
runtime->hw.channels_max = 1;
else