summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudiu Beznea <claudiu.beznea.uj@bp.renesas.com>2026-01-19 22:52:52 +0300
committerMark Brown <broonie@kernel.org>2026-01-20 15:14:30 +0300
commitcafadbf430f4b2f3ca4158de48ef6ba4d97fbf17 (patch)
treeef42c89c0a66529c0a8649af95e8bc2926e208a0
parentc7a4c368e7135046c358ff15c4f7897e2522dedc (diff)
downloadlinux-cafadbf430f4b2f3ca4158de48ef6ba4d97fbf17.tar.xz
ASoC: renesas: rz-ssi: Drop goto label
There is no need to jump to a label just to return. Return directly instead. Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> Link: https://patch.msgid.link/20260119195252.3362486-5-claudiu.beznea.uj@bp.renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/renesas/rz-ssi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/renesas/rz-ssi.c b/sound/soc/renesas/rz-ssi.c
index 74e87102d902..da45e9ad1a2f 100644
--- a/sound/soc/renesas/rz-ssi.c
+++ b/sound/soc/renesas/rz-ssi.c
@@ -843,7 +843,7 @@ static int rz_ssi_dai_trigger(struct snd_pcm_substream *substream, int cmd,
for (i = 0; i < num_transfer; i++) {
ret = strm->transfer(ssi, strm);
if (ret)
- goto done;
+ return ret;
}
ret = rz_ssi_start(ssi, strm);
@@ -859,7 +859,6 @@ static int rz_ssi_dai_trigger(struct snd_pcm_substream *substream, int cmd,
break;
}
-done:
return ret;
}