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
__archive__
zwelch 2009-06-08 10:57:39 +00:00
parent 521d8d5bfa
commit d76c63431f
1 changed files with 1 additions and 7 deletions

View File

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