From: Bastien Curutchet Date: Tue, 2 Apr 2024 07:12:06 +0000 (+0200) Subject: ASoC: ti: davinci-i2s: Delete unnecessary assignment X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7dd7a6d2648b0b253cb8be3cdf8e895a995548fe;p=linux.git ASoC: ti: davinci-i2s: Delete unnecessary assignment In davinci_i2s_hw_params(), mcbsp_word_length is set twice to asp_word_length[fmt]. Remove second unnecessary assignment. Signed-off-by: Bastien Curutchet Acked-by: Peter Ujfalusi Link: https://msgid.link/r/20240402071213.11671-7-bastien.curutchet@bootlin.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/ti/davinci-i2s.c b/sound/soc/ti/davinci-i2s.c index 578b4ae28b710..a2c7c812ea508 100644 --- a/sound/soc/ti/davinci-i2s.c +++ b/sound/soc/ti/davinci-i2s.c @@ -479,7 +479,6 @@ static int davinci_i2s_hw_params(struct snd_pcm_substream *substream, return -EINVAL; } } - mcbsp_word_length = asp_word_length[fmt]; switch (master) { case SND_SOC_DAIFMT_BP_FP: