diff mbox series

venus: core: Fix a warning in register offsets

Message ID 20210407105549.348178-1-stanimir.varbanov@linaro.org
State New
Headers show
Series venus: core: Fix a warning in register offsets | expand

Commit Message

Stanimir Varbanov April 7, 2021, 10:55 a.m. UTC
Fix the following sparse warnings:

core.c:227:41: warning: Using plain integer as NULL pointer
core.c:228:34: warning: Using plain integer as NULL pointer

Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>

---
 drivers/media/platform/qcom/venus/core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.25.1

Comments

patchwork-bot+linux-arm-msm@kernel.org May 26, 2021, 7:03 p.m. UTC | #1
Hello:

This patch was applied to qcom/linux.git (refs/heads/for-next):

On Wed,  7 Apr 2021 13:55:49 +0300 you wrote:
> Fix the following sparse warnings:

> 

> core.c:227:41: warning: Using plain integer as NULL pointer

> core.c:228:34: warning: Using plain integer as NULL pointer

> 

> Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>

> 

> [...]


Here is the summary with links:
  - venus: core: Fix a warning in register offsets
    https://git.kernel.org/qcom/c/b6f139947e93

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
diff mbox series

Patch

diff --git a/drivers/media/platform/qcom/venus/core.c b/drivers/media/platform/qcom/venus/core.c
index f5b88b96f5f7..4451e3c11bc0 100644
--- a/drivers/media/platform/qcom/venus/core.c
+++ b/drivers/media/platform/qcom/venus/core.c
@@ -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;
 	}
 }