coding style: add parenthesis around the argument of sizeof
authorAntonio Borneo <borneo.antonio@gmail.com>
Sun, 5 May 2019 22:35:52 +0000 (00:35 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 9 May 2020 13:39:19 +0000 (14:39 +0100)
commite66bb9d3121eef35c312997aacb401847249a5cb
tree0d33157ce316c781aea167484999c3736bf1555f
parent9b29cb58acbd14ed831d68fce4d6e6a1728f8caf
coding style: add parenthesis around the argument of sizeof

The script checkpatch available in new Linux kernel offers an
experimental feature for automatically fix the code in place.
While still experimental, the feature works quite well for simple
fixes, like parenthesis.

This patch has been created automatically with the script under
review for inclusion in OpenOCD, using the command:

find src/ -type f -exec ./tools/scripts/checkpatch.pl \
-q --types SIZEOF_PARENTHESIS --fix-inplace -f {} \;

Change-Id: I8adb325bdb0e13211f8bae8b4770ec1979c176bf
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5618
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Tested-by: jenkins
15 files changed:
src/flash/nand/davinci.c
src/jtag/aice/aice_transport.c
src/jtag/core.c
src/jtag/drivers/amt_jtagaccel.c
src/jtag/drivers/gw16012.c
src/jtag/drivers/kitprog.c
src/jtag/drivers/parport.c
src/jtag/tcl.c
src/target/arm11.c
src/target/arm11_dbgtap.c
src/target/arm_disassembler.c
src/target/arm_dpm.c
src/target/armv8_dpm.c
src/target/cortex_m.c
src/target/xscale.c