riscv-openocd/src/helper
Antonio Borneo cd44c6cf83 helper: with pointers, use NULL instead of 0
Don't compare pointers with 0, use NULL when needed.
Don't assign pointer to 0, use NULL.
Don't pass 0 ad pointer argument, pass NULL.

Detected through 'sparse' tool.

Change-Id: I3f867cb9c0903f6e396311e7b3970ee5fb3a4231
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7597
Tested-by: jenkins
2023-05-05 22:09:09 +00:00
..
Makefile.am helper: add compiler.h to handle compiler specific workarounds 2023-03-18 21:57:27 +00:00
align.h helper: add align.h 2021-08-14 13:29:43 +01:00
bin2char.sh openocd: src: replace SPDX to remaining files 2022-07-23 13:59:25 +00:00
binarybuffer.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
binarybuffer.h openocd: src/helper: replace the GPL-2.0-or-later license tag 2022-07-23 13:54:09 +00:00
bits.h openocd: src/helper: replace the GPL-2.0-or-later license tag 2022-07-23 13:54:09 +00:00
command.c helper: with pointers, use NULL instead of 0 2023-05-05 22:09:09 +00:00
command.h helper: command: drop last LF ('\n') from sequence of command_print() 2023-02-26 10:00:52 +00:00
compiler.h helper/compiler fix build with gcc on MacOS 2023-04-07 22:56:27 +00:00
configuration.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
configuration.h openocd: src/helper: replace the GPL-2.0-or-later license tag 2022-07-23 13:54:09 +00:00
crc32.c helper: Add generic little endian CRC32 function 2023-01-21 22:57:33 +00:00
crc32.h helper: Add generic little endian CRC32 function 2023-01-21 22:57:33 +00:00
fileio.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
fileio.h openocd: src/helper: replace the GPL-2.0-or-later license tag 2022-07-23 13:54:09 +00:00
jep106.c helper: with pointers, use NULL instead of 0 2023-05-05 22:09:09 +00:00
jep106.h openocd: src/helper: replace the GPL-2.0-or-later license tag 2022-07-23 13:54:09 +00:00
jep106.inc jep106: update to revision JEP106BF.01 Oct 2022 2022-11-15 21:34:22 +00:00
jim-nvp.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
jim-nvp.h helper/jim-nvp: avoid camelcase error by deprecated API 2022-07-23 13:59:49 +00:00
list.h helper/list: re-align with Linux kernel 6.3-rc1 2023-04-07 21:47:34 +00:00
log.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
log.h log: remove unused set_log_output() 2022-09-13 22:10:19 +00:00
nvp.c helper: nvp: add openocd nvp files 2023-02-03 22:47:40 +00:00
nvp.h helper: add compiler.h to handle compiler specific workarounds 2023-03-18 21:57:27 +00:00
options.c helper: with pointers, use NULL instead of 0 2023-05-05 22:09:09 +00:00
replacements.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
replacements.h openocd: src/helper: replace the GPL-2.0-or-later license tag 2022-07-23 13:54:09 +00:00
startup.tcl openocd: build: add SPDX tag 2022-07-23 13:06:38 +00:00
system.h openocd: src/helper: replace the GPL-2.0-or-later license tag 2022-07-23 13:54:09 +00:00
time_support.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
time_support.h openocd: src/helper: replace the GPL-2.0-or-later license tag 2022-07-23 13:54:09 +00:00
time_support_common.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
types.h helper/types: use unsigned type for all h_u64_to_le() and similar 2022-11-11 20:10:05 +00:00
update_jep106.pl openocd: src: replace SPDX to remaining files 2022-07-23 13:59:25 +00:00
util.c helper: util: include util.h 2023-05-05 22:08:56 +00:00
util.h openocd: src/helper: replace the GPL-2.0-or-later license tag 2022-07-23 13:54:09 +00:00