From c45225dd117cbe000d1b4c89404b64a58aad9177 Mon Sep 17 00:00:00 2001 From: oharboe Date: Mon, 11 Aug 2008 10:31:13 +0000 Subject: [PATCH] propagate error code in case of "reset" failing. git-svn-id: svn://svn.berlios.de/openocd/trunk@906 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/target/target.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/target/target.c b/src/target/target.c index cd057b26..f3051cb0 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -1701,9 +1701,7 @@ int handle_reset_command(struct command_context_s *cmd_ctx, char *cmd, char **ar } /* reset *all* targets */ - target_process_reset(cmd_ctx, reset_mode); - - return ERROR_OK; + return target_process_reset(cmd_ctx, reset_mode); } int handle_resume_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc) -- 2.39.5