summaryrefslogtreecommitdiff
path: root/sound/soc/sof
diff options
context:
space:
mode:
authorDaniel Baluta <daniel.baluta@nxp.com>2020-03-13 16:27:37 +0200
committerDaniel Baluta <daniel.baluta@nxp.com>2020-03-13 16:58:57 +0200
commitec19a7176f5c2378ffc7deaf72ec81b77d490f6b (patch)
tree2c86f23ad01fb51f61bc0411346627eee82bf6f9 /sound/soc/sof
parent236ee9e163d52cfb133d74253fbf39cfed0c5494 (diff)
MLK-23560-4 ASoC: SOF: Fix maybe used unitialized warning
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 <daniel.baluta@nxp.com>
Diffstat (limited to 'sound/soc/sof')
-rw-r--r--sound/soc/sof/imx/imx8.c2
1 files changed, 1 insertions, 1 deletions
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)