Skip to content

Commit

Permalink
jtag/drivers/rshim: Remove redundant error message
Browse files Browse the repository at this point in the history
The correct syntax is already suggested due to the return
value used.

Change-Id: I0f4a7f93fdf056e7517c754d6d4ecd7928f1d226
Signed-off-by: Marc Schink <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/7992
Reviewed-by: Antonio Borneo <[email protected]>
Reviewed-by: Tomas Vanek <[email protected]>
Tested-by: jenkins
  • Loading branch information
zapb-0 authored and borneoa committed Nov 18, 2023
1 parent dc0f79d commit 1df35d9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/jtag/drivers/rshim.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 1df35d9

Please sign in to comment.