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:55:24 +01:00
2021-06-26 14:38:59 +01:00
2020-10-03 11:21:15 +01:00
2020-10-03 11:21:15 +01:00
2021-07-20 14:52:25 +01:00
2021-07-20 14:52:25 +01:00
2020-02-24 10:28:46 +00:00
2021-07-20 14:52:25 +01:00
2021-04-25 23:08:41 +01:00
2016-05-24 22:30:01 +01:00
2021-05-01 14:35:09 +01:00
2021-06-04 17:40:48 +01:00
2020-02-27 06:46:51 +00:00
2021-01-13 11:33:53 +00:00
2020-02-27 06:46:51 +00:00
2021-07-20 14:55:24 +01:00
2020-02-27 06:46:51 +00:00
2021-07-20 14:55:24 +01:00
2021-05-22 10:06:45 +01:00
2021-07-20 14:52:25 +01:00
2020-07-08 22:07:38 +01:00
2021-06-18 23:12:54 +01:00
2020-07-26 20:12:48 +01:00
2021-06-18 23:12:54 +01:00
2020-07-26 20:12:21 +01:00
2021-07-20 14:52:25 +01:00
2021-07-20 14:52:25 +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
2016-05-24 22:30:55 +01:00
2021-07-20 14:52:25 +01:00
2017-02-10 13:50:17 +01:00
2021-07-20 14:52:25 +01:00
2021-07-20 14:52:25 +01:00
2020-11-04 17:39:17 +00:00
2016-05-24 22:30:55 +01:00
2020-09-05 17:12:39 +01:00
2016-05-24 22:30:55 +01:00
2021-07-02 17:12:11 +01:00
2021-07-02 17:12:11 +01:00
2021-07-20 14:55:24 +01:00
2018-04-10 09:13:02 +01:00
2021-07-20 14:55:24 +01:00
2021-07-20 14:52:49 +01:00
2021-07-20 14:52:49 +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:49 +01:00
2021-03-19 21:59:48 +00:00
2018-06-04 09:16:08 +01:00
2021-07-20 14:52:49 +01:00
2016-05-24 22:30:55 +01:00
2021-07-20 14:55:24 +01:00
2021-03-10 21:34:04 +00:00
2021-07-20 14:52:25 +01:00
2019-05-14 19:37:11 +01:00
2021-05-01 14:35:09 +01:00
2016-05-24 22:30:01 +01:00
2017-02-10 13:50:17 +01:00
2021-07-20 14:52:25 +01:00
2020-03-12 10:11:19 +00:00
2021-05-29 21:34:55 +01:00
2017-02-10 13:50:17 +01:00
2020-11-04 17:39:17 +00:00
2020-09-05 17:12:39 +01:00
2020-09-05 17:12:39 +01:00
2019-06-12 15:14:44 +01:00
2021-07-20 14:52:25 +01:00
2021-07-02 17:12:11 +01:00
2021-03-10 21:34:04 +00:00
2021-03-10 21:34:04 +00:00
2021-06-18 23:14:27 +01:00
2021-06-26 14:41:15 +01:00
2020-09-05 17:12:39 +01:00
2017-02-10 14:01:39 +01:00
2021-07-20 14:52:25 +01:00
2021-05-22 10:04:20 +01:00
2020-03-12 09:47:08 +00:00
2021-07-20 14:52:49 +01:00
2021-07-20 14:55:24 +01:00
2021-07-02 17:12:11 +01:00
2020-11-04 17:39:17 +00:00
2016-05-24 22:30:55 +01:00
2020-11-04 17:39:17 +00:00
2016-05-24 22:30:55 +01:00
2021-05-22 10:06:45 +01:00
2016-05-24 22:30:55 +01:00
2016-05-24 22:30:01 +01:00
2016-05-24 22:30:55 +01:00
2020-07-26 23:09:45 +01:00
2016-05-24 22:30:55 +01:00
2021-06-26 14:42:01 +01:00
2021-06-18 23:10:57 +01:00
2021-07-20 14:55:24 +01:00
2021-07-20 14:52:25 +01:00
2021-07-20 14:52:38 +01:00
2021-07-20 14:52:38 +01:00
2020-05-09 14:40:52 +01:00
2020-02-24 10:30:36 +00:00
2021-06-26 14:40:34 +01:00
2021-06-26 14:40:34 +01:00
2021-01-13 11:33:53 +00:00
2020-02-24 10:30:36 +00:00
2021-03-19 21:56:06 +00:00
2021-07-20 14:52:25 +01:00
2020-09-05 17:12:39 +01:00
2018-12-12 08:47:44 +00:00
2020-07-26 23:09:45 +01:00
2020-09-05 17:12:39 +01:00
2018-12-12 08:47:44 +00:00
2019-05-14 19:37:11 +01:00
2018-12-12 08:47:44 +00:00
2020-03-07 15:30:05 +00:00
2016-05-24 22:30:55 +01:00
2019-05-14 19:37:11 +01:00
2016-05-24 22:30:55 +01:00
2021-07-20 14:55:24 +01:00
2020-07-26 23:09:45 +01:00
2020-07-26 20:12:21 +01:00
2021-07-20 14:52:25 +01:00
2021-07-20 14:52:25 +01:00
2021-05-01 13:36:28 +01:00
2021-05-01 14:35:09 +01:00
2020-07-26 23:09:45 +01:00
2017-02-10 13:50:17 +01:00
2020-09-05 17:12:39 +01:00
2021-03-19 21:55:15 +00:00
2021-05-22 10:11:10 +01:00
2016-05-24 22:30:01 +01:00
2016-05-24 22:30:55 +01:00
2021-03-10 21:30:04 +00:00
2021-03-10 21:30:04 +00:00
2021-06-18 23:14:27 +01:00
2021-07-20 14:53:03 +01:00
2021-07-02 17:14:11 +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
2021-07-20 14:53:03 +01:00
2021-07-20 14:53:03 +01:00
2021-07-20 14:55:24 +01:00
2017-05-08 18:04:56 +01:00
2021-07-20 14:55:24 +01:00
2019-11-28 19:49:10 +00:00
2017-02-10 13:50:17 +01:00
2017-02-10 13:50:17 +01:00
2021-07-20 14:54:27 +01:00
2016-05-24 22:30:55 +01:00
2020-05-09 14:39:29 +01:00
2016-05-24 22:30:55 +01:00
2021-05-01 14:35:09 +01:00
2021-07-20 14:54:27 +01:00
2020-09-05 17:12:39 +01:00
2016-05-24 22:30:55 +01:00
2021-07-20 14:53:12 +01:00
2021-07-20 14:53:12 +01:00
2021-07-20 14:55:24 +01:00
2016-05-24 22:30:55 +01:00
2021-07-20 14:55:24 +01:00
2017-02-10 13:50:17 +01:00
2021-07-20 14:55:24 +01:00
2016-05-24 22:30:55 +01:00
2021-07-20 14:55:24 +01:00
2016-05-24 22:30:55 +01:00
2021-07-20 14:55:24 +01:00
2021-07-20 14:53:12 +01:00
2020-11-04 17:39:17 +00:00
2018-01-13 09:25:12 +00: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-07-10 15:29:58 +01:00
2021-05-01 14:35:09 +01:00
2021-07-20 14:55:24 +01:00
2019-03-27 08:55:03 +00:00
2021-06-04 17:46:48 +01:00
2021-07-02 17:12:38 +01:00
2021-05-08 09:49:32 +01:00
2020-07-26 23:09:45 +01:00
2016-05-24 22:30:55 +01:00
2021-06-04 17:45:58 +01:00
2021-07-20 14:55:24 +01:00
2021-06-04 17:45:58 +01:00
2019-04-07 08:17:36 +01:00
2020-09-05 20:47:11 +01:00
2021-05-01 14:35:09 +01:00
2021-07-20 14:55:24 +01:00
2018-01-13 09:25:34 +00:00
2020-11-15 21:05:37 +00:00
2016-05-24 22:30:55 +01:00