From f6b81b6db197383b32fa1bcb5737369ba72e4e6b Mon Sep 17 00:00:00 2001 From: Banajit Goswami Date: Wed, 1 Feb 2017 15:51:00 -0800 Subject: [PATCH] ASoC: msm: remove wrong return statement Remove the return statement from msm_aux_pcm_snd_startup function as it will return from the function unintentionally. CRs-Fixed: 2001289 Change-Id: I197806f008d40b686a28de44efc5cc6cc16b16e3 Signed-off-by: Banajit Goswami --- sound/soc/msm/msm8998.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/msm/msm8998.c b/sound/soc/msm/msm8998.c index 391640d53d56..f03e63a644fd 100644 --- a/sound/soc/msm/msm8998.c +++ b/sound/soc/msm/msm8998.c @@ -3809,7 +3809,6 @@ static int msm_aux_pcm_snd_startup(struct snd_pcm_substream *substream) struct snd_soc_pcm_runtime *rtd = substream->private_data; struct snd_soc_dai *cpu_dai = rtd->cpu_dai; int index = cpu_dai->id - 1; - return ret = 0; dev_dbg(rtd->card->dev, "%s: substream = %s stream = %d, dai name %s, dai ID %d\n",