openocd/src/flash/nand
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
..
arm_io.c target/arm: optimize architecture flags 2021-06-18 23:12:54 +01:00
arm_io.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
at91sam9.c openocd: fix simple cases of Yoda condition 2021-07-20 14:55:24 +01:00
core.c openocd: fix simple cases of Yoda condition 2021-07-20 14:55:24 +01:00
core.h flash: fix some minor typo 2021-05-22 10:06:32 +01:00
davinci.c coding style: add parenthesis around the argument of sizeof 2020-05-09 14:39:19 +01:00
driver.c openocd: fix simple cases of Yoda condition 2021-07-20 14:55:24 +01:00
driver.h flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
ecc_kw.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
ecc.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
fileio.c openocd: fix simple cases of Yoda condition 2021-07-20 14:55:24 +01:00
fileio.h nand/fileio: change prototype of nand_fileio_start() 2019-05-14 19:33:43 +01:00
imp.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
lpc32xx.c openocd: fix simple cases of Yoda condition 2021-07-20 14:55:24 +01:00
lpc32xx.h flash: rename CamelCase symbols 2021-07-02 17:09:47 +01:00
lpc3180.c openocd: fix simple cases of Yoda condition 2021-07-20 14:55:24 +01:00
lpc3180.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
Makefile.am Convert to non-recursive make 2016-12-08 16:23:10 +00:00
mx3.c flash: use proper format with uint32_t 2020-09-05 17:12:32 +01:00
mx3.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
mxc.c flash: use lowercase for C variables 2021-07-20 14:54:04 +01:00
mxc.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
nonce.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
nuc910.c Avoid non-standard conditionals with omitted operands. 2021-06-04 17:46:24 +01:00
nuc910.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
orion.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
s3c24xx_regs.h flash: rename CamelCase symbols 2021-07-02 17:09:47 +01:00
s3c24xx.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
s3c24xx.h openocd: fix simple cases of Yoda condition 2021-07-20 14:55:24 +01:00
s3c2410.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
s3c2412.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
s3c2440.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
s3c2443.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
s3c6400.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
tcl.c openocd: fix simple cases of Yoda condition 2021-07-20 14:55:24 +01:00