Skip to content

Commit 2e2a161

Browse files
ColinIanKingbroonie
authored andcommitted
ASoC: mediatek: mt8186: remove redundant assignments to variable tdm_con
There are two occurrences where variable tdm_con is being initialized to zero and the next statement re-assigns tdm_con to a new value. The initializations are redundant and can be removed. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://lore.kernel.org/r/20231023151704.670240-1-colin.i.king@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 8c2d238 commit 2e2a161

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

sound/soc/mediatek/mt8186/mt8186-dai-tdm.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,12 +416,10 @@ static int mtk_dai_tdm_hw_params(struct snd_pcm_substream *substream,
416416
regmap_update_bits(afe->regmap, ETDM_IN1_CON1, ETDM_IN_CON1_CTRL_MASK, tdm_con);
417417

418418
/* ETDM_IN1_CON3 */
419-
tdm_con = 0;
420419
tdm_con = ETDM_IN_CON3_FS(tran_rate);
421420
regmap_update_bits(afe->regmap, ETDM_IN1_CON3, ETDM_IN_CON3_CTRL_MASK, tdm_con);
422421

423422
/* ETDM_IN1_CON4 */
424-
tdm_con = 0;
425423
tdm_con = ETDM_IN_CON4_FS(tran_relatch_rate);
426424
if (slave_mode) {
427425
if (lrck_inv)

0 commit comments

Comments
 (0)