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