From: Stricted Date: Sat, 19 Jun 2021 22:52:22 +0000 (+0000) Subject: amlogic: hifi4dsp: Fix null check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fd7eb378277cc6af50d854c11fbc39a9c4dcbf84;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git amlogic: hifi4dsp: Fix null check Change-Id: I3b8bc51863bb69662193d8e5e3f99f4319b81e65 --- 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");