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: 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>

authored by

Tang Bin and committed by
Mark Brown
f5a0ea89 22206e56

+1 -4
+1 -4
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
··· 2422 2422 unsigned int channels = params_channels(params); 2423 2423 snd_pcm_format_t format = params_format(params); 2424 2424 int width = snd_pcm_format_physical_width(format); 2425 - int ret; 2426 2425 2427 2426 if (!is_valid_etdm_dai(dai->id)) 2428 2427 return -EINVAL; ··· 2449 2450 etdm_data->data_mode = MTK_DAI_ETDM_DATA_MULTI_PIN; 2450 2451 } 2451 2452 2452 - ret = mtk_dai_etdm_configure(afe, rate, channels, width, dai->id); 2453 - 2454 - return ret; 2453 + return mtk_dai_etdm_configure(afe, rate, channels, width, dai->id); 2455 2454 } 2456 2455 2457 2456 static int mtk_dai_hdmitx_dptx_set_sysclk(struct snd_soc_dai *dai,