summaryrefslogtreecommitdiff
path: root/sound/soc/mediatek/mt8188
diff options
context:
space:
mode:
authorTang Bin <tangbin@cmss.chinamobile.com>2024-10-16 09:18:51 +0800
committerMark Brown <broonie@kernel.org>2024-10-17 12:13:12 +0100
commitd3170359c96082302e7b6de624cb8592d8954e7d (patch)
treea87efe458033cbbf5b74f01eb242f0d9fbb59a7b /sound/soc/mediatek/mt8188
parentdaf5e3c68144bdb7e605f46853febc7bb257d44d (diff)
ASoC: mediatek: mt8188: remove unnecessary variable assignment
In the function mt8188_adda_mtkaif_init, 'val' to 0 is repeated, thus delete one. Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com> Link: https://patch.msgid.link/20241016011851.2023-1-tangbin@cmss.chinamobile.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/mediatek/mt8188')
-rw-r--r--sound/soc/mediatek/mt8188/mt8188-dai-adda.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/soc/mediatek/mt8188/mt8188-dai-adda.c b/sound/soc/mediatek/mt8188/mt8188-dai-adda.c
index 8a17d1935c48..43670316611e 100644
--- a/sound/soc/mediatek/mt8188/mt8188-dai-adda.c
+++ b/sound/soc/mediatek/mt8188/mt8188-dai-adda.c
@@ -63,7 +63,6 @@ static int mt8188_adda_mtkaif_init(struct mtk_base_afe *afe)
param->mtkaif_phase_cycle[MT8188_MTKAIF_MISO_0];
}
- val = 0;
mask = (MTKAIF_RXIF_DELAY_DATA | MTKAIF_RXIF_DELAY_CYCLE_MASK);
val |= FIELD_PREP(MTKAIF_RXIF_DELAY_CYCLE_MASK, delay_cycle);
val |= FIELD_PREP(MTKAIF_RXIF_DELAY_DATA, delay_data);