summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-08 10:55:54 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-08 10:55:54 +0000
commitf418fcbff06e04a2ddacef0e0e6dcc329a73eb73 (patch)
tree7f2643e01f4371deb1ad242264c863149b02e3d2 /src
parent791701165c1ae59cdbdcfeef5c52120fc77969c3 (diff)
downloadopenocd+libswd-f418fcbff06e04a2ddacef0e0e6dcc329a73eb73.tar.gz
openocd+libswd-f418fcbff06e04a2ddacef0e0e6dcc329a73eb73.tar.bz2
openocd+libswd-f418fcbff06e04a2ddacef0e0e6dcc329a73eb73.tar.xz
openocd+libswd-f418fcbff06e04a2ddacef0e0e6dcc329a73eb73.zip
Simplify jtag_execute_queue_noclear:
- Replace jtag_error logic with equivalent call to jtag_set_error. - Remove superfluous comment and temporary return variable. git-svn-id: svn://svn.berlios.de/openocd/trunk@2116 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r--src/jtag/jtag.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/jtag/jtag.c b/src/jtag/jtag.c
index f15e895a..2caac530 100644
--- a/src/jtag/jtag.c
+++ b/src/jtag/jtag.c
@@ -903,17 +903,8 @@ int default_interface_jtag_execute_queue(void)
void jtag_execute_queue_noclear(void)
{
- /* each flush can take as much as 1-2ms on high bandwidth low latency interfaces.
- * E.g. a JTAG over TCP/IP or USB....
- */
jtag_flush_queue_count++;
-
- int retval=interface_jtag_execute_queue();
- /* we keep the first error */
- if ((jtag_error==ERROR_OK)&&(retval!=ERROR_OK))
- {
- jtag_error=retval;
- }
+ jtag_set_error(interface_jtag_execute_queue());
}
int jtag_get_flush_queue_count(void)