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: ak4458: Remove useless return variable

Remove unnecessary return variable and compress the return logic.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20250416041023.546311-1-nichen@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Chen Ni and committed by
Mark Brown
65bd426b 91f4ca73

+3 -7
+3 -7
sound/soc/codecs/ak4458.c
··· 586 586 static int ak4458_startup(struct snd_pcm_substream *substream, 587 587 struct snd_soc_dai *dai) 588 588 { 589 - int ret; 590 - 591 - ret = snd_pcm_hw_constraint_list(substream->runtime, 0, 592 - SNDRV_PCM_HW_PARAM_RATE, 593 - &ak4458_rate_constraints); 594 - 595 - return ret; 589 + return snd_pcm_hw_constraint_list(substream->runtime, 0, 590 + SNDRV_PCM_HW_PARAM_RATE, 591 + &ak4458_rate_constraints); 596 592 } 597 593 598 594 static const struct snd_soc_dai_ops ak4458_dai_ops = {