From d15f58ad4c451ca30478d26a89295c65b7257d0d Mon Sep 17 00:00:00 2001 From: Antonio Borneo Date: Sat, 6 May 2023 16:24:04 +0200 Subject: [PATCH] target: arm_dpm: with pointers, use NULL instead of 0 Don't assign pointer to 0, use NULL. Detected through 'sparse' tool. Change-Id: I34551112ddab9dedf8537c8111d32356c170e7d5 Signed-off-by: Antonio Borneo Reviewed-on: https://review.openocd.org/c/openocd/+/7669 Tested-by: jenkins --- src/target/arm_dpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/target/arm_dpm.c b/src/target/arm_dpm.c index 5f7e9291b..fd6fb263f 100644 --- a/src/target/arm_dpm.c +++ b/src/target/arm_dpm.c @@ -1050,7 +1050,7 @@ int arm_dpm_setup(struct arm_dpm *dpm) { struct arm *arm = dpm->arm; struct target *target = arm->target; - struct reg_cache *cache = 0; + struct reg_cache *cache = NULL; arm->dpm = dpm;