summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-03-12 11:01:00 -0400
committerTakashi Iwai <tiwai@suse.de>2018-03-12 11:05:11 -0400
commit0bc66fd3b688ae33ac073de7e79ba1223ecc465c (patch)
tree5d9474a431d92bc9689e2ea940c6f301a07d7764
parent7a33a02ffb0620b01892c6c6808bb711b3f63e9c (diff)
ALSA: echoaudio: remove redundant initialization of pointer 'pipe'
The pointer 'pipe' is being initialized with a value that is never read and it is re-assigned later, hence the initialization is redundant and can be removed. Also remove pointer 'runtime' as it is no longer required. Cleans up clang warning: sound/pci/echoaudio/echoaudio.c:740:20: warning: Value stored to 'pipe' during its initialization is never read Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/pci/echoaudio/echoaudio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/pci/echoaudio/echoaudio.c b/sound/pci/echoaudio/echoaudio.c
index d68f99e076a8..0935a5c8741f 100644
--- a/sound/pci/echoaudio/echoaudio.c
+++ b/sound/pci/echoaudio/echoaudio.c
@@ -736,8 +736,7 @@ static int pcm_prepare(struct snd_pcm_substream *substream)
736static int pcm_trigger(struct snd_pcm_substream *substream, int cmd) 736static int pcm_trigger(struct snd_pcm_substream *substream, int cmd)
737{ 737{
738 struct echoaudio *chip = snd_pcm_substream_chip(substream); 738 struct echoaudio *chip = snd_pcm_substream_chip(substream);
739 struct snd_pcm_runtime *runtime = substream->runtime; 739 struct audiopipe *pipe;
740 struct audiopipe *pipe = runtime->private_data;
741 int i, err; 740 int i, err;
742 u32 channelmask = 0; 741 u32 channelmask = 0;
743 struct snd_pcm_substream *s; 742 struct snd_pcm_substream *s;