jtag/drivers/rshim: Remove redundant error message
The correct syntax is already suggested due to the return value used. Change-Id: I0f4a7f93fdf056e7517c754d6d4ecd7928f1d226 Signed-off-by: Marc Schink <dev@zapb.de> Reviewed-on: https://review.openocd.org/c/openocd/+/7992 Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-by: Tomas Vanek <vanekt@fbl.cz> Tested-by: jenkins
This commit is contained in:
parent
dc0f79d45d
commit
1df35d92fe
|
@ -434,10 +434,8 @@ static void rshim_disconnect(struct adiv5_dap *dap)
|
|||
|
||||
COMMAND_HANDLER(rshim_dap_device_command)
|
||||
{
|
||||
if (CMD_ARGC != 1) {
|
||||
command_print(CMD, "Too many arguments");
|
||||
if (CMD_ARGC != 1)
|
||||
return ERROR_COMMAND_SYNTAX_ERROR;
|
||||
}
|
||||
|
||||
free(rshim_dev_path);
|
||||
rshim_dev_path = strdup(CMD_ARGV[0]);
|
||||
|
|
Loading…
Reference in New Issue