[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <27ca1a1e99193b543102df03f7c256063468f693.camel@mediatek.com>
Date: Tue, 7 Sep 2021 16:00:37 +0800
From: Trevor Wu <trevor.wu@...iatek.com>
To: Colin King <colin.king@...onical.com>,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>,
Matthias Brugger <matthias.bgg@...il.com>,
<alsa-devel@...a-project.org>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-mediatek@...ts.infradead.org>
CC: <kernel-janitors@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] ASoC: mediatek: mt8195: Fix unused initialization of
pointer etdm_data
On Fri, 2021-09-03 at 12:49 +0100, Colin King wrote:
> From: Colin Ian King <colin.king@...onical.com>
>
> 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 <colin.king@...onical.com>
> ---
> sound/soc/mediatek/mt8195/mt8195-dai-etdm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
> b/sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
> index 7378e42f2766..ac591d453e1e 100644
> --- a/sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
> +++ b/sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
> @@ -2094,7 +2094,7 @@ static int mtk_dai_etdm_set_sysclk(struct
> snd_soc_dai *dai,
> {
> struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
> struct mt8195_afe_private *afe_priv = afe->platform_priv;
> - struct mtk_dai_etdm_priv *etdm_data = afe_priv->dai_priv[dai-
> >id];
> + struct mtk_dai_etdm_priv *etdm_data;
> int dai_id;
>
> dev_dbg(dai->dev, "%s id %d freq %u, dir %d\n",
Acked-by: Trevor Wu <trevor.wu@...iatek.com>
Thanks.
Powered by blists - more mailing lists