diff options
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 |
commit | dcba0709580cd8b0d2869894d2f7e22195b7e3d7 (patch) | |
tree | e259284fd9b0fd4d12076873ebd93c18aa68ccb1 /src/xsvf | |
parent | 7013b960feeb0d4ab3aeae40d5ac17dda6d79a3a (diff) | |
download | riscv-openocd-dcba0709580cd8b0d2869894d2f7e22195b7e3d7.zip riscv-openocd-dcba0709580cd8b0d2869894d2f7e22195b7e3d7.tar.gz riscv-openocd-dcba0709580cd8b0d2869894d2f7e22195b7e3d7.tar.bz2 |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xsvf/xsvf.c b/src/xsvf/xsvf.c index 51d0e7b..f4d09ff 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); |