]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ASoC: mediatek: mt8188: remove unnecessary variable assignment
authorTang Bin <tangbin@cmss.chinamobile.com>
Wed, 16 Oct 2024 01:18:51 +0000 (09:18 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 17 Oct 2024 11:13:12 +0000 (12:13 +0100)
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>
sound/soc/mediatek/mt8188/mt8188-dai-adda.c

index 8a17d1935c48f14be2ed15ce019d6dcb2d99a0ed..43670316611e9a5805356165d30303444527310c 100644 (file)
@@ -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);