* [PATCH] ASoC: pxa: remove unnecessary assignment to variable ret
@ 2020-09-30 2:52 Jing Xiangfeng
0 siblings, 0 replies; only message in thread
From: Jing Xiangfeng @ 2020-09-30 2:52 UTC (permalink / raw)
To: daniel, haojian.zhuang, robert.jarzmik, perex, tiwai
Cc: alsa-devel, linux-kernel, linux-arm-kernel, jingxiangfeng
ret is always zero here in this code path. So remove this assignment.
Signed-off-by: Jing Xiangfeng <jingxiangfeng@huawei.com>
---
sound/arm/pxa2xx-ac97.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/sound/arm/pxa2xx-ac97.c b/sound/arm/pxa2xx-ac97.c
index ea8e233150c8..813e608dca82 100644
--- a/sound/arm/pxa2xx-ac97.c
+++ b/sound/arm/pxa2xx-ac97.c
@@ -210,7 +210,6 @@ static int pxa2xx_ac97_pcm_new(struct snd_card *card)
goto out;
pxa2xx_ac97_pcm = pcm;
- ret = 0;
out:
return ret;
--
2.17.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-09-30 2:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-30 2:52 [PATCH] ASoC: pxa: remove unnecessary assignment to variable ret Jing Xiangfeng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).