Commit b32300a4ce78b4df92f33c455ffe644b36f0ff1a

Authored by Julia Lawall
Committed by Takashi Iwai
1 parent 43337ac0de

[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>

Showing 1 changed file with 0 additions and 3 deletions Side-by-side Diff

sound/pci/pcxhr/pcxhr.c
... ... @@ -846,7 +846,6 @@
846 846 struct pcxhr_mgr *mgr = chip->mgr;
847 847 struct snd_pcm_runtime *runtime = subs->runtime;
848 848 struct pcxhr_stream *stream;
849   - int is_capture;
850 849  
851 850 mutex_lock(&mgr->setup_mutex);
852 851  
853 852  
... ... @@ -856,12 +855,10 @@
856 855 if( subs->stream == SNDRV_PCM_STREAM_PLAYBACK ) {
857 856 snd_printdd("pcxhr_open playback chip%d subs%d\n",
858 857 chip->chip_idx, subs->number);
859   - is_capture = 0;
860 858 stream = &chip->playback_stream[subs->number];
861 859 } else {
862 860 snd_printdd("pcxhr_open capture chip%d subs%d\n",
863 861 chip->chip_idx, subs->number);
864   - is_capture = 1;
865 862 if (mgr->mono_capture)
866 863 runtime->hw.channels_max = 1;
867 864 else