Files
sw_openocd/src/target
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
..
2021-07-20 14:52:25 +01:00
2021-07-20 14:52:25 +01:00
2021-05-01 14:35:09 +01:00
2021-05-22 10:06:45 +01:00
2021-07-20 14:52:25 +01:00
2016-05-24 22:30:55 +01:00
2021-07-20 14:52:25 +01:00
2021-07-20 14:52:25 +01:00
2018-04-10 09:13:02 +01:00
2021-07-20 14:52:25 +01:00
2021-07-20 14:52:25 +01:00
2020-07-08 22:07:38 +01:00
2020-07-08 22:07:38 +01:00
2021-07-20 14:52:25 +01:00
2021-05-01 14:35:09 +01:00
2021-07-20 14:52:25 +01:00
2020-03-12 10:11:19 +00:00
2021-07-20 14:52:25 +01:00
2021-05-22 10:06:45 +01:00
2016-05-24 22:30:55 +01:00
2018-12-12 08:47:44 +00:00
2018-12-12 08:47:44 +00:00
2018-12-12 08:47:44 +00:00
2016-05-24 22:30:55 +01:00
2021-05-01 14:35:09 +01:00
2021-05-22 10:11:10 +01:00
2021-07-20 14:53:03 +01:00
2019-11-28 16:59:15 +00:00
2020-07-08 22:08:08 +01:00
2019-11-28 16:59:15 +00:00
2017-05-08 18:04:56 +01:00
2021-05-01 14:35:09 +01:00
2021-07-20 14:53:12 +01:00
2021-06-18 23:14:09 +01:00
2021-05-01 14:35:09 +01:00
2020-12-02 23:15:52 +00:00
2020-12-02 23:15:52 +00:00
2021-06-04 17:45:58 +01:00
2021-06-04 17:45:58 +01:00
2021-05-01 14:35:09 +01:00
2016-05-24 22:30:55 +01:00