ASoC: pxa: Remove unneeded else after return statement
authorCodrut Grosu <codrut.cristian.grosu@gmail.com>
Sat, 25 Feb 2017 21:26:56 +0000 (23:26 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 7 Mar 2017 13:27:43 +0000 (14:27 +0100)
This was reported by checkpatch.pl

Signed-off-by: Codrut Grosu <codrut.cristian.grosu@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/pxa/pxa2xx-ac97.c

index 2e2fb1838ec2531ba7a6c113b6c051349ff2f961..f49bf02e5ec2426f8462fc195746bd268a53cde6 100644 (file)
@@ -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;
 }