Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: fsl_rpmsg: Remove useless return variable

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>
Link: https://patch.msgid.link/20250416041431.546370-1-nichen@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Chen Ni and committed by
Mark Brown
ba05bc25 65bd426b

+3 -7
+3 -7
sound/soc/fsl/fsl_rpmsg.c
··· 97 97 static int fsl_rpmsg_startup(struct snd_pcm_substream *substream, 98 98 struct snd_soc_dai *cpu_dai) 99 99 { 100 - int ret; 101 - 102 - ret = snd_pcm_hw_constraint_list(substream->runtime, 0, 103 - SNDRV_PCM_HW_PARAM_RATE, 104 - &fsl_rpmsg_rate_constraints); 105 - 106 - return ret; 100 + return snd_pcm_hw_constraint_list(substream->runtime, 0, 101 + SNDRV_PCM_HW_PARAM_RATE, 102 + &fsl_rpmsg_rate_constraints); 107 103 } 108 104 109 105 static const struct snd_soc_dai_ops fsl_rpmsg_dai_ops = {