]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: venus: use NULL instead of zero for pointers
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 8 Apr 2021 06:35:30 +0000 (08:35 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 8 Apr 2021 06:35:30 +0000 (08:35 +0200)
As reported by sparse:

drivers/media/platform/qcom/venus/core.c:227:41: warning: Using plain integer as NULL pointer
drivers/media/platform/qcom/venus/core.c:228:34: warning: Using plain integer as NULL pointer

Two vars are using zero instead of NULL for pointers. Not really
an issue, but using NULL makes it clearer that the init data is
expecting a pointer.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/qcom/venus/core.c

index f5b88b96f5f793a53233e3b9393dc4102018e7f1..4451e3c11bc05c0d2a8c4a08ddc6f2ab1a7fbac0 100644 (file)
@@ -224,8 +224,8 @@ static void venus_assign_register_offsets(struct venus_core *core)
                core->cpu_cs_base = core->base + CPU_CS_BASE;
                core->cpu_ic_base = core->base + CPU_IC_BASE;
                core->wrapper_base = core->base + WRAPPER_BASE;
-               core->wrapper_tz_base = 0;
-               core->aon_base = 0;
+               core->wrapper_tz_base = NULL;
+               core->aon_base = NULL;
        }
 }