summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/jtag/jtag.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/jtag/jtag.c b/src/jtag/jtag.c
index b118b0ce..4e6f269b 100644
--- a/src/jtag/jtag.c
+++ b/src/jtag/jtag.c
@@ -640,14 +640,8 @@ void jtag_add_pathmove(int num_states, const tap_state_t *path)
void jtag_add_runtest(int num_cycles, tap_state_t state)
{
- int retval;
-
jtag_prelude(state);
-
- /* executed by sw or hw fifo */
- retval=interface_jtag_add_runtest(num_cycles, state);
- if (retval!=ERROR_OK)
- jtag_error=retval;
+ jtag_set_error(interface_jtag_add_runtest(num_cycles, state));
}