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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user