mirror of
https://github.com/torvalds/linux.git
synced 2026-09-26 10:02:02 +02:00
ASoC: amd: acp: remove conditional return with no effect
Both branches of the check return the same value, so the check has no effect. Remove it and return the value directly. This is the result of running the Coccinelle script from scripts/coccinelle/misc/cond_return_no_effect.cocci. Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com> Reviewed-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com> Link: https://patch.msgid.link/20260725160344.916838-2-ekffu200098@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
7859b74c0b
commit
3799a56da8
|
|
@ -938,15 +938,10 @@ static int acp_max98388_hw_params(struct snd_pcm_substream *substream,
|
|||
struct snd_soc_dai *codec_dai =
|
||||
snd_soc_card_get_codec_dai(card,
|
||||
MAX98388_CODEC_DAI);
|
||||
int ret;
|
||||
|
||||
ret = snd_soc_dai_set_fmt(codec_dai,
|
||||
SND_SOC_DAIFMT_CBC_CFC | SND_SOC_DAIFMT_I2S |
|
||||
SND_SOC_DAIFMT_NB_NF);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
return ret;
|
||||
return snd_soc_dai_set_fmt(codec_dai,
|
||||
SND_SOC_DAIFMT_CBC_CFC | SND_SOC_DAIFMT_I2S |
|
||||
SND_SOC_DAIFMT_NB_NF);
|
||||
}
|
||||
|
||||
static const struct snd_soc_ops acp_max98388_ops = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user