openocd: remove last NULL comparisons
authorAntonio Borneo <borneo.antonio@gmail.com>
Sat, 4 Sep 2021 21:01:09 +0000 (23:01 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 18 Sep 2021 15:22:30 +0000 (15:22 +0000)
commit79800db98a985bcd601e8a892aed76d96548a51b
tree2250fd09d5be8834fe9c8e0ec513134758ccd971
parentea562985b5eff536feea022b074122b21c3610ea
openocd: remove last NULL comparisons

The NULL pointers preceded by cast where not detected by the
scripting tools looking for NULL pointer comparison.

Remove them and, while there, further simplify the code and apply
the other coding style rules.

Change-Id: Ia7406122e07ef56ef311579ab0ee7ddb22c8e4b5
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/6539
Tested-by: jenkins
Reviewed-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
13 files changed:
src/jtag/drivers/jlink.c
src/rtos/linux.c
src/rtos/rtos.c
src/server/gdb_server.c
src/target/armv7a.c
src/target/armv7a_cache.c
src/target/armv7a_cache_l2x.c
src/target/armv8_cache.c
src/target/breakpoints.c
src/target/cortex_a.c
src/target/mips_m4k.c
src/target/smp.c
src/target/target.c