summaryrefslogtreecommitdiff
path: root/src/xsvf
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2010-06-21 13:25:06 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-06-21 13:43:23 +0200
commitdcba0709580cd8b0d2869894d2f7e22195b7e3d7 (patch)
treee259284fd9b0fd4d12076873ebd93c18aa68ccb1 /src/xsvf
parent7013b960feeb0d4ab3aeae40d5ac17dda6d79a3a (diff)
downloadopenocd+libswd-dcba0709580cd8b0d2869894d2f7e22195b7e3d7.tar.gz
openocd+libswd-dcba0709580cd8b0d2869894d2f7e22195b7e3d7.tar.bz2
openocd+libswd-dcba0709580cd8b0d2869894d2f7e22195b7e3d7.tar.xz
openocd+libswd-dcba0709580cd8b0d2869894d2f7e22195b7e3d7.zip
jtag: do not use jtag_get_error()
normal code should not call jtag_get_error(), but rather check the return code from jtag_execute_queue(). Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/xsvf')
-rw-r--r--src/xsvf/xsvf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xsvf/xsvf.c b/src/xsvf/xsvf.c
index 51d0e7b1..f4d09ff9 100644
--- a/src/xsvf/xsvf.c
+++ b/src/xsvf/xsvf.c
@@ -331,7 +331,7 @@ COMMAND_HANDLER(handle_xsvf_command)
else
jtag_add_pathmove(pathlen, path);
- result = jtag_get_error();
+ result = jtag_execute_queue();
if (result != ERROR_OK) {
LOG_ERROR("XSVF: pathmove error %d",
result);