summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-08-11 10:31:13 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-08-11 10:31:13 +0000
commitc45225dd117cbe000d1b4c89404b64a58aad9177 (patch)
treead52a0c4c49d1492554704421b164a18da6f680b
parent1ee637287e5f4233ab9e7a34c7e7229eb69ba894 (diff)
downloadopenocd_libswd-c45225dd117cbe000d1b4c89404b64a58aad9177.tar.gz
openocd_libswd-c45225dd117cbe000d1b4c89404b64a58aad9177.tar.bz2
openocd_libswd-c45225dd117cbe000d1b4c89404b64a58aad9177.tar.xz
openocd_libswd-c45225dd117cbe000d1b4c89404b64a58aad9177.zip
propagate error code in case of "reset" failing.
git-svn-id: svn://svn.berlios.de/openocd/trunk@906 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r--src/target/target.c4
1 files changed, 1 insertions, 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)