riscv-openocd/src
Antonio Borneo 3934483429 target: avoid checking for non NULL pointer to free it
The function free() can be called with a NULL pointer as argument,
no need to check the argument before. If the pointer is NULL, no
operation is performed by free().

Remove the occurrences of pattern:
	if (ptr)
		free(ptr);

In target/openrisc/jsp_server.c, an error is logged if the ptr was
already NULL. This cannot happen since the pointer was already
referenced few lines before and openocd would have been already
SIGSEGV in that case, so remove the log.

Change-Id: I290a32e6d4deab167676af4ddc83523c830ae49e
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5809
Tested-by: jenkins
2020-09-05 20:47:11 +01:00
..
flash flash: use proper format with uint32_t 2020-09-05 17:12:32 +01:00
helper openocd: avoid checking for non NULL pointer to free it 2020-09-05 17:11:50 +01:00
jtag drivers/buspirate: remove empty lines at end of file 2020-09-05 18:44:19 +01:00
pld openocd: use proper format with uint32_t 2020-09-05 17:12:44 +01:00
rtos openocd: use proper format with uint32_t 2020-09-05 17:12:44 +01:00
server openocd: use proper format with uint32_t 2020-09-05 17:12:44 +01:00
svf openocd: fix command's usage string 2020-09-05 17:13:10 +01:00
target target: avoid checking for non NULL pointer to free it 2020-09-05 20:47:11 +01:00
transport transport: fix minor typos 2020-07-26 20:14:14 +01:00
xsvf openocd: avoid checking for non NULL pointer to free it 2020-09-05 17:11:50 +01:00
Makefile.am Convert to non-recursive make 2016-12-08 16:23:10 +00:00
hello.c helper/command: change prototype of command_print/command_print_sameline 2019-05-14 19:37:11 +01:00
hello.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
main.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
openocd.c openocd: fix issue in WIN32 with TCP adapters 2020-06-14 14:23:48 +01:00
openocd.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00