openocd/src/target/openrisc
Antonio Borneo 08ee7bb982 openocd: fix simple cases of NULL comparison
There are more than 1000 NULL comparisons to be aligned to the
coding style.
For recurrent NULL comparison it's preferable using trivial
scripts in order to minimize the review effort.

Patch generated automatically with the command:
	sed -i PATTERN $(find src/ -type f)
where PATTERN is in the list:
	's/(\([a-z][a-z0-9_]*\) == NULL)/(!\1)/g'
	's/(\([a-z][a-z0-9_]*->[a-z][a-z0-9_]*\) == NULL)/(!\1)/g'
	's/(\([a-z][a-z0-9_]*\.[a-z][a-z0-9_]*\) == NULL)/(!\1)/g'

	's/(\([a-z][a-z0-9_]*\) != NULL)/(\1)/g'
	's/(\([a-z][a-z0-9_]*->[a-z][a-z0-9_]*\) != NULL)/(\1)/g'
	's/(\([a-z][a-z0-9_]*\.[a-z][a-z0-9_]*\) != NULL)/(\1)/g'

	's/(NULL == \([a-z][a-z0-9_]*\))/(!\1)/g'
	's/(NULL == \([a-z][a-z0-9_]*->[a-z][a-z0-9_]*\))/(!\1)/g'
	's/(NULL == \([a-z][a-z0-9_]*\.[a-z][a-z0-9_]*\))/(!\1)/g'

	's/(NULL != \([a-z][a-z0-9_]*\))/(\1)/g'
	's/(NULL != \([a-z][a-z0-9_]*->[a-z][a-z0-9_]*\))/(\1)/g'
	's/(NULL != \([a-z][a-z0-9_]*\.[a-z][a-z0-9_]*\))/(\1)/g'

Change-Id: Ida103e325d6d0600fb69c0b7a1557ee969db4417
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/6350
Tested-by: jenkins
2021-07-24 10:37:49 +01:00
..
jsp_server.c openocd: fix simple cases of Yoda condition 2021-07-20 14:55:24 +01:00
jsp_server.h server: free strduped port numbers 2018-03-15 17:08:53 +00:00
Makefile.am Convert to non-recursive make 2016-12-08 16:23:10 +00:00
or1k_du_adv.c openocd: fix simple cases of NULL comparison 2021-07-24 10:37:49 +01:00
or1k_du.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
or1k_tap_mohor.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
or1k_tap_vjtag.c target: use proper format with uint32_t 2020-09-05 17:12:39 +01:00
or1k_tap_xilinx_bscan.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
or1k_tap.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
or1k.c openocd: fix simple cases of NULL comparison 2021-07-24 10:37:49 +01:00
or1k.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00