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>
This commit is contained in:
Øyvind Harboe
2010-06-21 13:25:06 +02:00
parent 7013b960fe
commit dcba070958
2 changed files with 3 additions and 6 deletions

View File

@@ -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);