aboutsummaryrefslogtreecommitdiff
path: root/src/pld/pld.c
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2021-11-09 00:04:52 +0100
committerAntonio Borneo <borneo.antonio@gmail.com>2021-11-23 11:03:38 +0000
commitb5d1b719e5a4a248d99921ebfd1298dcb473d1c1 (patch)
treedcf1bf30ad089b4570601d06517c56c020882068 /src/pld/pld.c
parent8d9379c9bab8defe1ddb875352b432567d94f65b (diff)
downloadriscv-openocd-b5d1b719e5a4a248d99921ebfd1298dcb473d1c1.zip
riscv-openocd-b5d1b719e5a4a248d99921ebfd1298dcb473d1c1.tar.gz
riscv-openocd-b5d1b719e5a4a248d99921ebfd1298dcb473d1c1.tar.bz2
openocd: use single line for register_commands*()
Do not split in multiple lines the calls to register_commands*(). No change in code behaviour, just make it easy to grep in the code and identify the commands that can be registered. This would help detecting undocumented commands. Change-Id: Id654e107cdabf7ee31fc3d227c1d2a59acc5669e Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/6716 Tested-by: jenkins Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Diffstat (limited to 'src/pld/pld.c')
-rw-r--r--src/pld/pld.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pld/pld.c b/src/pld/pld.c
index d0f85d7..fe21f6c 100644
--- a/src/pld/pld.c
+++ b/src/pld/pld.c
@@ -67,8 +67,7 @@ COMMAND_HANDLER(handle_pld_device_command)
/* register pld specific commands */
int retval;
if (pld_drivers[i]->commands) {
- retval = register_commands(CMD_CTX, NULL,
- pld_drivers[i]->commands);
+ retval = register_commands(CMD_CTX, NULL, pld_drivers[i]->commands);
if (retval != ERROR_OK) {
LOG_ERROR("couldn't register '%s' commands", CMD_ARGV[0]);
return ERROR_FAIL;