From: oharboe Date: Mon, 11 Aug 2008 10:31:13 +0000 (+0000) Subject: propagate error code in case of "reset" failing. X-Git-Tag: v0.1.0~393 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c45225dd117cbe000d1b4c89404b64a58aad9177;p=openocd propagate error code in case of "reset" failing. git-svn-id: svn://svn.berlios.de/openocd/trunk@906 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- 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)