]> git.sur5r.net Git - openocd/commitdiff
Simplify jtag_execute_queue_noclear:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 8 Jun 2009 10:55:54 +0000 (10:55 +0000)
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 8 Jun 2009 10:55:54 +0000 (10:55 +0000)
- 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

src/jtag/jtag.c

index f15e895ac4f8995ca42e29e4475ab018368af7d7..2caac53075d313f05f517f83d6bcfc9c874bb94b 100644 (file)
@@ -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)