diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2019-05-06 00:35:52 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2020-05-09 14:39:19 +0100 |
commit | e66bb9d3121eef35c312997aacb401847249a5cb (patch) | |
tree | 0d33157ce316c781aea167484999c3736bf1555f /src/flash/nand | |
parent | 9b29cb58acbd14ed831d68fce4d6e6a1728f8caf (diff) | |
download | riscv-openocd-e66bb9d3121eef35c312997aacb401847249a5cb.zip riscv-openocd-e66bb9d3121eef35c312997aacb401847249a5cb.tar.gz riscv-openocd-e66bb9d3121eef35c312997aacb401847249a5cb.tar.bz2 |
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
Diffstat (limited to 'src/flash/nand')
-rw-r--r-- | src/flash/nand/davinci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nand/davinci.c b/src/flash/nand/davinci.c index 17e6f68..167b401 100644 --- a/src/flash/nand/davinci.c +++ b/src/flash/nand/davinci.c @@ -730,7 +730,7 @@ NAND_DEVICE_COMMAND_HANDLER(davinci_nand_device_command) goto fail; } - info = calloc(1, sizeof *info); + info = calloc(1, sizeof(*info)); if (info == NULL) goto fail; |