summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-08 10:57:39 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-08 10:57:39 +0000
commitd76c63431f2e3eee118b5a51f68311faab7edd11 (patch)
treec43cb0f4887bc102f866d43c188d8999ea623b29 /src
parent521d8d5bfaebe69f507de42847360486290248ee (diff)
downloadopenocd+libswd-d76c63431f2e3eee118b5a51f68311faab7edd11.tar.gz
openocd+libswd-d76c63431f2e3eee118b5a51f68311faab7edd11.tar.bz2
openocd+libswd-d76c63431f2e3eee118b5a51f68311faab7edd11.tar.xz
openocd+libswd-d76c63431f2e3eee118b5a51f68311faab7edd11.zip
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
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));
}