diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2021-11-09 00:04:52 +0100 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2021-11-23 11:03:38 +0000 |
commit | b5d1b719e5a4a248d99921ebfd1298dcb473d1c1 (patch) | |
tree | dcf1bf30ad089b4570601d06517c56c020882068 /src/flash | |
parent | 8d9379c9bab8defe1ddb875352b432567d94f65b (diff) | |
download | riscv-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')
-rw-r--r-- | src/flash/nand/tcl.c | 3 | ||||
-rw-r--r-- | src/flash/nor/tcl.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/flash/nand/tcl.c b/src/flash/nand/tcl.c index 6707314..b796fb7 100644 --- a/src/flash/nand/tcl.c +++ b/src/flash/nand/tcl.c @@ -528,8 +528,7 @@ static COMMAND_HELPER(create_nand_device, const char *bank_name, } if (controller->commands) { - retval = register_commands(CMD_CTX, NULL, - controller->commands); + retval = register_commands(CMD_CTX, NULL, controller->commands); if (retval != ERROR_OK) return retval; } 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); |