Skip to content

Commit f3c8897

Browse files
Tang Binbroonie
authored andcommitted
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent b4b3622 commit f3c8897

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

sound/soc/mediatek/mt8183/mt8183-dai-i2s.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,6 @@ static int mt8183_dai_i2s_set_priv(struct mtk_base_afe *afe)
10361036
int mt8183_dai_i2s_register(struct mtk_base_afe *afe)
10371037
{
10381038
struct mtk_base_afe_dai *dai;
1039-
int ret;
10401039

10411040
dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
10421041
if (!dai)
@@ -1055,9 +1054,5 @@ int mt8183_dai_i2s_register(struct mtk_base_afe *afe)
10551054
dai->num_dapm_routes = ARRAY_SIZE(mtk_dai_i2s_routes);
10561055

10571056
/* set all dai i2s private data */
1058-
ret = mt8183_dai_i2s_set_priv(afe);
1059-
if (ret)
1060-
return ret;
1061-
1062-
return 0;
1057+
return mt8183_dai_i2s_set_priv(afe);
10631058
}

0 commit comments

Comments
 (0)