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: mt8183: Remove unnecessary variable assignments

In the function mt8183_dai_i2s_register, the variable
'ret' is redundant, thus remove it.

Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Link: https://patch.msgid.link/20241025090938.3480-1-tangbin@cmss.chinamobile.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Tang Bin and committed by
Mark Brown
f3c88974 b4b3622c

+1 -6
+1 -6
sound/soc/mediatek/mt8183/mt8183-dai-i2s.c
··· 1036 1036 int mt8183_dai_i2s_register(struct mtk_base_afe *afe) 1037 1037 { 1038 1038 struct mtk_base_afe_dai *dai; 1039 - int ret; 1040 1039 1041 1040 dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL); 1042 1041 if (!dai) ··· 1054 1055 dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_i2s_routes); 1055 1056 1056 1057 /* set all dai i2s private data */ 1057 - ret = mt8183_dai_i2s_set_priv(afe); 1058 - if (ret) 1059 - return ret; 1060 - 1061 - return 0; 1058 + return mt8183_dai_i2s_set_priv(afe); 1062 1059 }