From: Pierre-Louis Bossart Date: Fri, 26 Mar 2021 21:59:17 +0000 (-0500) Subject: ASoC: pxa: remove useless assignment X-Git-Tag: v5.15~992^2~1^2~122^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=00a25480cca4a094765084964c753c8f28e0f6fd;p=platform%2Fkernel%2Flinux-starfive.git ASoC: pxa: remove useless assignment cppcheck warning: sound/soc/pxa/mmp-pcm.c:207:10: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] int ret = 0, stream; ^ Signed-off-by: Pierre-Louis Bossart Link: https://lore.kernel.org/r/20210326215927.936377-8-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/pxa/mmp-pcm.c b/sound/soc/pxa/mmp-pcm.c index 53fc49e..5d520e1 100644 --- a/sound/soc/pxa/mmp-pcm.c +++ b/sound/soc/pxa/mmp-pcm.c @@ -204,7 +204,7 @@ static int mmp_pcm_new(struct snd_soc_component *component, { struct snd_pcm_substream *substream; struct snd_pcm *pcm = rtd->pcm; - int ret = 0, stream; + int ret, stream; for (stream = 0; stream < 2; stream++) { substream = pcm->streams[stream].substream;