summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-08 10:57:10 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-08 10:57:10 +0000
commit8a89899860bd5b6cdd04846d1d4852847e2ac1dd (patch)
tree2dbb74d2b9e7c9d2c39ddde1aef44078d44dcbc5 /src
parentd3d0f662ef730440e84f5e359f1e4bdc3c505efe (diff)
downloadopenocd_libswd-8a89899860bd5b6cdd04846d1d4852847e2ac1dd.tar.gz
openocd_libswd-8a89899860bd5b6cdd04846d1d4852847e2ac1dd.tar.bz2
openocd_libswd-8a89899860bd5b6cdd04846d1d4852847e2ac1dd.tar.xz
openocd_libswd-8a89899860bd5b6cdd04846d1d4852847e2ac1dd.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/jtag/jtag.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/jtag/jtag.c b/src/jtag/jtag.c
index f5d6ac01..b4d0cae8 100644
--- a/src/jtag/jtag.c
+++ b/src/jtag/jtag.c
@@ -599,12 +599,7 @@ void jtag_add_dr_out(jtag_tap_t* tap,
void jtag_add_tlr(void)
{
jtag_prelude(TAP_RESET);
-
- int retval;
- retval=interface_jtag_add_tlr();
- if (retval!=ERROR_OK)
- jtag_error=retval;
-
+ jtag_set_error(interface_jtag_add_tlr());
jtag_call_event_callbacks(JTAG_TRST_ASSERTED);
}