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__
parent
521d8d5bfa
commit
d76c63431f
|
@ -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)
|
void jtag_add_runtest(int num_cycles, tap_state_t state)
|
||||||
{
|
{
|
||||||
int retval;
|
|
||||||
|
|
||||||
jtag_prelude(state);
|
jtag_prelude(state);
|
||||||
|
jtag_set_error(interface_jtag_add_runtest(num_cycles, state));
|
||||||
/* executed by sw or hw fifo */
|
|
||||||
retval=interface_jtag_add_runtest(num_cycles, state);
|
|
||||||
if (retval!=ERROR_OK)
|
|
||||||
jtag_error=retval;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue