[PATCH] ASoC: fsl_rpmsg: Remove useless return variable

Chen Ni posted 1 patch 8 months, 1 week ago
sound/soc/fsl/fsl_rpmsg.c | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
[PATCH] ASoC: fsl_rpmsg: Remove useless return variable
Posted by Chen Ni 8 months, 1 week ago
Remove unnecessary return variable and compress the return logic.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
---
 sound/soc/fsl/fsl_rpmsg.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/sound/soc/fsl/fsl_rpmsg.c b/sound/soc/fsl/fsl_rpmsg.c
index 0a551be3053b..6d67db4e0581 100644
--- a/sound/soc/fsl/fsl_rpmsg.c
+++ b/sound/soc/fsl/fsl_rpmsg.c
@@ -97,13 +97,9 @@ static int fsl_rpmsg_hw_free(struct snd_pcm_substream *substream,
 static int fsl_rpmsg_startup(struct snd_pcm_substream *substream,
 			     struct snd_soc_dai *cpu_dai)
 {
-	int ret;
-
-	ret = snd_pcm_hw_constraint_list(substream->runtime, 0,
-					 SNDRV_PCM_HW_PARAM_RATE,
-					 &fsl_rpmsg_rate_constraints);
-
-	return ret;
+	return snd_pcm_hw_constraint_list(substream->runtime, 0,
+					  SNDRV_PCM_HW_PARAM_RATE,
+					  &fsl_rpmsg_rate_constraints);
 }
 
 static const struct snd_soc_dai_ops fsl_rpmsg_dai_ops = {
-- 
2.25.1
Re: [PATCH] ASoC: fsl_rpmsg: Remove useless return variable
Posted by Mark Brown 8 months ago
On Wed, 16 Apr 2025 12:14:31 +0800, Chen Ni wrote:
> Remove unnecessary return variable and compress the return logic.
> 
> 

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoC: fsl_rpmsg: Remove useless return variable
      commit: ba05bc25490a2256f60be2c02bd797e6f8217119

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
Re: [PATCH] ASoC: fsl_rpmsg: Remove useless return variable
Posted by Daniel Baluta 8 months, 1 week ago
On Wed, Apr 16, 2025 at 7:15 AM Chen Ni <nichen@iscas.ac.cn> wrote:
>
> Remove unnecessary return variable and compress the return logic.
>
> Signed-off-by: Chen Ni <nichen@iscas.ac.cn>

Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>