From ec19a7176f5c2378ffc7deaf72ec81b77d490f6b Mon Sep 17 00:00:00 2001 From: Daniel Baluta Date: Fri, 13 Mar 2020 16:27:37 +0200 Subject: MLK-23560-4 ASoC: SOF: Fix maybe used unitialized warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes the following compilation warning: sound/soc/sof/imx/imx8.c: In function ‘imx8_probe’: sound/soc/sof/imx/imx8.c:210:6: warning: ‘i’ may be used uninitialized in this function [-Wmaybe-uninitiali Warning introduce with commit commit 352ad24ec ("MLK-23350-1 ASoC: sof: Skip power domain handline when num_domains") Signed-off-by: Daniel Baluta --- sound/soc/sof/imx/imx8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sound/soc/sof') diff --git a/sound/soc/sof/imx/imx8.c b/sound/soc/sof/imx/imx8.c index e7bef3b71934..080da33ff5ba 100644 --- a/sound/soc/sof/imx/imx8.c +++ b/sound/soc/sof/imx/imx8.c @@ -207,7 +207,7 @@ static int imx8_probe(struct snd_sof_dev *sdev) struct resource res; u32 base, size; int ret = 0; - int i; + int i = 0; priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); if (!priv) -- cgit v1.2.3