|
From: <zw...@ma...> - 2009-06-08 12:56:04
|
Author: zwelch
Date: 2009-06-08 12:55:54 +0200 (Mon, 08 Jun 2009)
New Revision: 2116
Modified:
trunk/src/jtag/jtag.c
Log:
Simplify jtag_execute_queue_noclear:
- Replace jtag_error logic with equivalent call to jtag_set_error.
- Remove superfluous comment and temporary return variable.
Modified: trunk/src/jtag/jtag.c
===================================================================
--- trunk/src/jtag/jtag.c 2009-06-08 10:55:44 UTC (rev 2115)
+++ trunk/src/jtag/jtag.c 2009-06-08 10:55:54 UTC (rev 2116)
@@ -903,17 +903,8 @@
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)
|