From d76c63431f2e3eee118b5a51f68311faab7edd11 Mon Sep 17 00:00:00 2001 From: zwelch Date: Mon, 8 Jun 2009 10:57:39 +0000 Subject: [PATCH] Simplify jtag_add_runtest: - Use jtag_set_error instead of accessing jtag_error directly. - Eliminate superfluous comment and temporary variable. git-svn-id: svn://svn.berlios.de/openocd/trunk@2124 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/jtag/jtag.c | 8 +------- 1 file changed, 1 insertion(+), 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)); } -- 2.39.5