2
0
mirror of git://git.code.sf.net/p/openocd/code synced 2025-07-19 10:08:37 +10:00

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.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7669
Tested-by: jenkins
This commit is contained in:
Antonio Borneo 2023-05-06 16:24:04 +02:00
parent cc29abe9d1
commit d15f58ad4c

View File

@ -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;