Simplify jtag_add_tlr:

- Use jtag_set_error instead of accessing jtag_error directly.
- Eliminate superfluous temporary variable.


git-svn-id: svn://svn.berlios.de/openocd/trunk@2122 b42882b7-edfa-0310-969c-e2dbd0fdcd60
__archive__
zwelch 2009-06-08 10:57:10 +00:00
parent d3d0f662ef
commit 8a89899860
1 changed files with 1 additions and 6 deletions

View File

@ -599,12 +599,7 @@ void jtag_add_dr_out(jtag_tap_t* tap,
void jtag_add_tlr(void) void jtag_add_tlr(void)
{ {
jtag_prelude(TAP_RESET); jtag_prelude(TAP_RESET);
jtag_set_error(interface_jtag_add_tlr());
int retval;
retval=interface_jtag_add_tlr();
if (retval!=ERROR_OK)
jtag_error=retval;
jtag_call_event_callbacks(JTAG_TRST_ASSERTED); jtag_call_event_callbacks(JTAG_TRST_ASSERTED);
} }