openocd/src/jtag/hla
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
..
hla_interface.c help text: remove trailing space 2021-05-29 21:34:55 +01:00
hla_interface.h stlink: support of ST-LINK TCP server using stlink-dap and hla 2021-03-10 21:29:06 +00:00
hla_layout.c jtag/drivers: add support for Nu-Link (Nuvoton ICE) over usb 2020-08-02 10:47:02 +01:00
hla_layout.h hla: API: specify that read_reg/write_reg use regsel as parameter 2020-11-15 21:07:14 +00:00
hla_tcl.c openocd: fix simple cases of Yoda condition 2021-07-20 14:55:24 +01:00
hla_tcl.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
hla_transport.c help text: remove trailing space 2021-05-29 21:34:55 +01:00
hla_transport.h swim: add new transport 2020-05-24 21:32:05 +01:00
Makefile.am Convert to non-recursive make 2016-12-08 16:23:10 +00:00