Skip to content

Commit 0000005

Browse files
Colin Ian Kingpull[bot]
Colin Ian King
authored andcommitted
ASoC: mediatek: mt8195: Fix unused initialization of pointer etdm_data
The pointer etdm_data is being inintialized with a value that is never read, it is later being re-assigned a new value. Remove the redundant initialization. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <[email protected]> Acked-by: Trevor Wu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent c880e9c commit 0000005

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: sound/soc/mediatek/mt8195/mt8195-dai-etdm.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2094,7 +2094,7 @@ static int mtk_dai_etdm_set_sysclk(struct snd_soc_dai *dai,
20942094
{
20952095
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
20962096
struct mt8195_afe_private *afe_priv = afe->platform_priv;
2097-
struct mtk_dai_etdm_priv *etdm_data = afe_priv->dai_priv[dai->id];
2097+
struct mtk_dai_etdm_priv *etdm_data;
20982098
int dai_id;
20992099

21002100
dev_dbg(dai->dev, "%s id %d freq %u, dir %d\n",

0 commit comments

Comments
 (0)