]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: renesas: rz-ssi: Drop goto label
authorClaudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Mon, 19 Jan 2026 19:52:52 +0000 (21:52 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 20 Jan 2026 12:14:30 +0000 (12:14 +0000)
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>
sound/soc/renesas/rz-ssi.c

index 74e87102d902af0a2b7a6164d630a58ac9e34039..da45e9ad1a2f8bacf779b493f9eeaf30714cf055 100644 (file)
@@ -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;
 }