This is an automated email from Gerrit.

"Antonio Borneo <borneo.anto...@gmail.com>" just uploaded a new patch set to 
Gerrit, which you can find at https://review.openocd.org/c/openocd/+/7669

-- gerrit

commit 9dbcce24d0e30f88cdce7d9316adbdd64dc10728
Author: Antonio Borneo <borneo.anto...@gmail.com>
Date:   Sat May 6 16:24:04 2023 +0200

    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 <borneo.anto...@gmail.com>

diff --git a/src/target/arm_dpm.c b/src/target/arm_dpm.c
index 5f7e9291b5..fd6fb263fc 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;
 

-- 

Reply via email to