Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1588230 > unrolled thread

[PATCH] ASoC: pxa: Remove unneeded else after return statement

Started byCodrut Grosu <codrut.cristian.grosu@gmail.com>
First post2017-02-25 22:30 +0100
Last post2017-02-25 22:30 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] ASoC: pxa: Remove unneeded else after return statement Codrut Grosu <codrut.cristian.grosu@gmail.com> - 2017-02-25 22:30 +0100

#1588230 — [PATCH] ASoC: pxa: Remove unneeded else after return statement

FromCodrut Grosu <codrut.cristian.grosu@gmail.com>
Date2017-02-25 22:30 +0100
Subject[PATCH] ASoC: pxa: Remove unneeded else after return statement
Message-ID<teS4F-5je-5@gated-at.bofh.it>
This was reported by checkpatch.pl

Signed-off-by: Codrut Grosu <codrut.cristian.grosu@gmail.com>
---
 sound/soc/pxa/pxa2xx-ac97.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/sound/soc/pxa/pxa2xx-ac97.c b/sound/soc/pxa/pxa2xx-ac97.c
index 2e2fb18..f49bf02 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;
 }
--
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web