From cdf8a44787aaa94929c5c2fe9f0086556f798aab Mon Sep 17 00:00:00 2001 From: Stricted Date: Sat, 19 Jun 2021 22:52:22 +0000 Subject: [PATCH] amlogic: hifi4dsp: Fix null check Change-Id: I3b8bc51863bb69662193d8e5e3f99f4319b81e65 --- drivers/amlogic/hifi4dsp/hifi4dsp_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/amlogic/hifi4dsp/hifi4dsp_module.c b/drivers/amlogic/hifi4dsp/hifi4dsp_module.c index 985463b0b0de..707521568a69 100644 --- a/drivers/amlogic/hifi4dsp/hifi4dsp_module.c +++ b/drivers/amlogic/hifi4dsp/hifi4dsp_module.c @@ -864,7 +864,7 @@ static int hifi4dsp_platform_probe(struct platform_device *pdev) HIFI4DSP_PRNT("kzalloc for p_dsp_miscdev error\n"); goto miscdev_malloc_error; } - if (!&p_dsp_miscdev->dsp_miscdev) + if (&p_dsp_miscdev->dsp_miscdev == NULL) pr_info("register dsp _p_dsp_miscdev->dsp_miscdev alloc error\n"); else pr_info("register dsp _p_dsp_miscdev->dsp_miscdev alloc success"); -- 2.20.1