diff options
author | Tang Bin <tangbin@cmss.chinamobile.com> | 2024-10-10 09:35:47 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-10-11 14:59:48 +0200 |
commit | f5a0ea8936a640d8229d5219515141fc496ec5d8 (patch) | |
tree | 30d4c5b293b6113049260f0af243b9c46b37c3f8 /sound/soc/mediatek | |
parent | ASoC: rt722-sdca: Remove logically deadcode in rt722-sdca.c (diff) | |
download | linux-f5a0ea8936a640d8229d5219515141fc496ec5d8.tar.xz linux-f5a0ea8936a640d8229d5219515141fc496ec5d8.zip |
ASoC: mediatek: mt8188: Remove unnecessary variable assignments
In the function mtk_dai_hdmitx_dptx_hw_params, the variable
'ret' is redundant, thus remove it.
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Link: https://patch.msgid.link/20241010073547.3720-1-tangbin@cmss.chinamobile.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/mediatek')
-rw-r--r-- | sound/soc/mediatek/mt8188/mt8188-dai-etdm.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/soc/mediatek/mt8188/mt8188-dai-etdm.c b/sound/soc/mediatek/mt8188/mt8188-dai-etdm.c index 2a48f5fd6826..69a091dad88d 100644 --- a/sound/soc/mediatek/mt8188/mt8188-dai-etdm.c +++ b/sound/soc/mediatek/mt8188/mt8188-dai-etdm.c @@ -2422,7 +2422,6 @@ static int mtk_dai_hdmitx_dptx_hw_params(struct snd_pcm_substream *substream, unsigned int channels = params_channels(params); snd_pcm_format_t format = params_format(params); int width = snd_pcm_format_physical_width(format); - int ret; if (!is_valid_etdm_dai(dai->id)) return -EINVAL; @@ -2450,9 +2449,7 @@ static int mtk_dai_hdmitx_dptx_hw_params(struct snd_pcm_substream *substream, etdm_data->data_mode = MTK_DAI_ETDM_DATA_MULTI_PIN; } - ret = mtk_dai_etdm_configure(afe, rate, channels, width, dai->id); - - return ret; + return mtk_dai_etdm_configure(afe, rate, channels, width, dai->id); } static int mtk_dai_hdmitx_dptx_set_sysclk(struct snd_soc_dai *dai, |