openocd: fix Yoda conditions with checkpatch 55/6355/3
authorAntonio Borneo <borneo.antonio@gmail.com>
Sat, 3 Jul 2021 15:18:53 +0000 (17:18 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 24 Jul 2021 09:38:31 +0000 (10:38 +0100)
commitc0c7d6fe8b04f521a7262303083ef5eb6ebaf4e5
treeceb6cb092f7bbf31a9ca0677c6a67364d4a52ed2
parent54e699b2601036e384a124657aa1fbdd9ff2dc87
openocd: fix Yoda conditions with checkpatch

The new checkpatch can automatically fix the code, but this
feature is still error prone and not complete.

Patch generated automatically through the new checkpatch with
flags "--types CONSTANT_COMPARISON --fix-inplace".

Some Yoda condition is detected by checkpatch but not fixed; it
will be fixed manually in a following commit.

Change-Id: Ifaaa1159e63dbd1db6aa3c017125df9874fa9703
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/6355
Tested-by: jenkins
34 files changed:
src/flash/nand/fileio.c
src/flash/nor/avrf.c
src/flash/nor/cc26xx.c
src/flash/nor/cc3220sf.c
src/flash/nor/efm32.c
src/flash/nor/fespi.c
src/flash/nor/msp432.c
src/flash/nor/tms470.c
src/helper/binarybuffer.c
src/helper/jim-nvp.c
src/helper/replacements.c
src/helper/time_support.c
src/jtag/aice/aice_interface.c
src/jtag/aice/aice_usb.c
src/jtag/core.c
src/jtag/drivers/buspirate.c
src/jtag/drivers/cmsis_dap_usb_hid.c
src/jtag/drivers/versaloon/usbtoxxx/usbtoxxx.c
src/jtag/drivers/versaloon/versaloon.c
src/jtag/drivers/vsllink.c
src/jtag/drivers/xds110.c
src/rtos/embKernel.c
src/rtos/mqx.c
src/rtos/riot.c
src/rtos/rtos.c
src/server/gdb_server.c
src/svf/svf.c
src/target/armv8.c
src/target/lakemont.c
src/target/nds32.c
src/target/nds32_cmd.c
src/target/nds32_v2.c
src/target/nds32_v3_common.c
src/target/target.c

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)