* [PATCH] ASoC: topology: Fix redundant logical jump
@ 2024-09-08 14:02 Tang Bin
2024-09-08 15:40 ` Markus Elfring
2024-09-13 20:17 ` Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Tang Bin @ 2024-09-08 14:02 UTC (permalink / raw)
To: lgirdwood, broonie, perex, tiwai; +Cc: linux-sound, linux-kernel, Tang Bin
In the function soc_tplg_dai_config, the logical jump
of 'goto err' is redundant, so remove it.
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
---
sound/soc/soc-topology.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/sound/soc/soc-topology.c b/sound/soc/soc-topology.c
index af5d42b57..af3158cdc 100644
--- a/sound/soc/soc-topology.c
+++ b/sound/soc/soc-topology.c
@@ -1894,7 +1894,7 @@ static int soc_tplg_dai_config(struct soc_tplg *tplg,
caps = &d->caps[SND_SOC_TPLG_STREAM_PLAYBACK];
ret = set_stream_info(tplg, stream, caps);
if (ret < 0)
- goto err;
+ return ret;
}
if (d->capture) {
@@ -1902,7 +1902,7 @@ static int soc_tplg_dai_config(struct soc_tplg *tplg,
caps = &d->caps[SND_SOC_TPLG_STREAM_CAPTURE];
ret = set_stream_info(tplg, stream, caps);
if (ret < 0)
- goto err;
+ return ret;
}
if (d->flag_mask)
@@ -1914,13 +1914,10 @@ static int soc_tplg_dai_config(struct soc_tplg *tplg,
ret = soc_tplg_dai_load(tplg, dai_drv, NULL, dai);
if (ret < 0) {
dev_err(tplg->dev, "ASoC: DAI loading failed\n");
- goto err;
+ return ret;
}
return 0;
-
-err:
- return ret;
}
/* load physical DAI elements */
--
2.33.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: topology: Fix redundant logical jump
2024-09-08 14:02 [PATCH] ASoC: topology: Fix redundant logical jump Tang Bin
@ 2024-09-08 15:40 ` Markus Elfring
2024-09-13 20:17 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Markus Elfring @ 2024-09-08 15:40 UTC (permalink / raw)
To: Tang Bin, linux-sound, Jaroslav Kysela, Liam Girdwood,
Mark Brown, Takashi Iwai
Cc: LKML
> In the function soc_tplg_dai_config, the logical jump
> of 'goto err' is redundant, so remove it.
* You may occasionally put more than 53 characters into text lines
of such a change description.
* Can it be simpler just to return directly instead of extra jumps here?
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/coding-style.rst?h=v6.11-rc6#n532
Regards,
Markus
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: topology: Fix redundant logical jump
2024-09-08 14:02 [PATCH] ASoC: topology: Fix redundant logical jump Tang Bin
2024-09-08 15:40 ` Markus Elfring
@ 2024-09-13 20:17 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2024-09-13 20:17 UTC (permalink / raw)
To: lgirdwood, perex, tiwai, Tang Bin; +Cc: linux-sound, linux-kernel
On Sun, 08 Sep 2024 22:02:59 +0800, Tang Bin wrote:
> In the function soc_tplg_dai_config, the logical jump
> of 'goto err' is redundant, so remove it.
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: topology: Fix redundant logical jump
commit: 2772ee6de6cf94e5f2a0c0ce6067d0796a4170ba
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-09-13 20:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-08 14:02 [PATCH] ASoC: topology: Fix redundant logical jump Tang Bin
2024-09-08 15:40 ` Markus Elfring
2024-09-13 20:17 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®