aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nor
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/flash/nor
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/flash/nor')
-rw-r--r--src/flash/nor/tcl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/flash/nor/tcl.c b/src/flash/nor/tcl.c
index 228e76f..b241913 100644
--- a/src/flash/nor/tcl.c
+++ b/src/flash/nor/tcl.c
@@ -1284,8 +1284,7 @@ COMMAND_HANDLER(handle_flash_bank_command)
/* register flash specific commands */
if (driver->commands) {
- int retval = register_commands(CMD_CTX, NULL,
- driver->commands);
+ int retval = register_commands(CMD_CTX, NULL, driver->commands);
if (retval != ERROR_OK) {
LOG_ERROR("couldn't register '%s' commands",
driver_name);