openocd/src/jtag
Antonio Borneo 28c24a5c41 openocd: fix simple cases of Yoda condition
There are ~900 Yoda conditions to be aligned to the coding style.
For recurrent Yoda conditions it's preferable using a trivial
script in order to minimize the review effort.
E.g. comparison of uppercase macro/enum with lowercase variable:
	- ...(ERROR_OK == retval)...
	+ ...(retval == ERROR_OK)...

Patch generated automatically with the command:
	sed -i \
	's/(\([A-Z][A-Z0-9_]*\) \([=!]=\) \([a-z][a-z0-9_]*\))/(\3 \2 \1)/g' \
	$(find src/ -type f)

While there, remove the braces {} around a single statement block
to prevent warning from checkpatch.

Change-Id: If585b0a4b4578879c87b2dd74d9e0025e275ec6b
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/6354
Tested-by: jenkins
Reviewed-by: Xiang W <wxjstz@126.com>
2021-07-20 14:55:24 +01:00
..
aice openocd: fix simple cases of Yoda condition 2021-07-20 14:55:24 +01:00
drivers openocd: fix simple cases of Yoda condition 2021-07-20 14:55:24 +01:00
hla openocd: fix simple cases of Yoda condition 2021-07-20 14:55:24 +01:00
adapter.c openocd: fix simple cases of Yoda condition 2021-07-20 14:55:24 +01:00
commands.c Fix debug prints when loading to flash 2020-09-05 16:48:08 +01:00
commands.h jtag: make cmd_queue_scan_field_clone public 2018-10-16 11:58:17 +01:00
core.c openocd: fix simple cases of Yoda condition 2021-07-20 14:55:24 +01:00
driver.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
interface.c coding style: prototype of functions with no parameters 2020-05-09 14:39:59 +01:00
interface.h armv7m_trace: get rid of the old tpiu code 2021-03-10 21:34:04 +00:00
interfaces.c jtag: remove minidriver code and minidriver-dummy 2021-03-19 21:56:06 +00:00
interfaces.h jtag: remove unused function adapter_driver_modules_load() 2020-05-02 15:41:21 +01:00
jtag.h Cleanup of config/includes. 2021-05-01 14:35:09 +01:00
Makefile.am jtag: remove minidriver code and minidriver-dummy 2021-03-19 21:56:06 +00:00
minidriver.h jtag: fix some minor typo 2021-05-22 10:06:38 +01:00
startup.tcl drivers/ftdi: Group adapter commands 2021-07-20 14:51:08 +01:00
swd.h jtag/swd: rename CamelCase macros 2021-07-02 17:10:31 +01:00
swim.c swim: add new transport 2020-05-24 21:32:05 +01:00
swim.h swim: fix adapter speed handling 2020-05-24 21:31:21 +01:00
tcl.c openocd: fix simple cases of Yoda condition 2021-07-20 14:55:24 +01:00
tcl.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00