summaryrefslogtreecommitdiffstats
path: root/sound/soc/pxa
diff options
context:
space:
mode:
authorCodrut Grosu <codrut.cristian.grosu@gmail.com>2017-02-25 23:26:56 +0200
committerMark Brown <broonie@kernel.org>2017-03-07 14:27:43 +0100
commit291aaff0c6f2c56645061b9c8afadc0bb1251676 (patch)
tree9286530526794abdab4a94ac461843bd5502fb9d /sound/soc/pxa
parent3e22e9d702ee719c8106fd44578b12ce27999ae6 (diff)
downloadlinux-291aaff0c6f2c56645061b9c8afadc0bb1251676.tar.bz2
ASoC: pxa: Remove unneeded else after return statement
This was reported by checkpatch.pl Signed-off-by: Codrut Grosu <codrut.cristian.grosu@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/pxa')
-rw-r--r--sound/soc/pxa/pxa2xx-ac97.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/soc/pxa/pxa2xx-ac97.c b/sound/soc/pxa/pxa2xx-ac97.c
index 2e2fb1838ec2..f49bf02e5ec2 100644
--- a/sound/soc/pxa/pxa2xx-ac97.c
+++ b/sound/soc/pxa/pxa2xx-ac97.c
@@ -140,9 +140,8 @@ static int pxa2xx_ac97_mic_startup(struct snd_pcm_substream *substream,
{
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
return -ENODEV;
- else
- snd_soc_dai_set_dma_data(cpu_dai, substream,
- &pxa2xx_ac97_pcm_mic_mono_in);
+ snd_soc_dai_set_dma_data(cpu_dai, substream,
+ &pxa2xx_ac97_pcm_mic_mono_in);
return 0;
}