|
From: <zw...@ma...> - 2009-06-02 08:33:23
|
Author: zwelch
Date: 2009-06-02 08:33:19 +0200 (Tue, 02 Jun 2009)
New Revision: 1994
Modified:
trunk/src/jtag/jtag.c
Log:
More JTAG interface driver cleanup:
- Add jtag_callback_queue_reset() to reset the callback queue.
- Make interface_jtag_execute_queue() use new helper function.
Modified: trunk/src/jtag/jtag.c
===================================================================
--- trunk/src/jtag/jtag.c 2009-06-02 06:21:49 UTC (rev 1993)
+++ trunk/src/jtag/jtag.c 2009-06-02 06:33:19 UTC (rev 1994)
@@ -87,6 +87,12 @@
static struct jtag_callback_entry *jtag_callback_queue_head = NULL;
static struct jtag_callback_entry *jtag_callback_queue_tail = NULL;
+
+static void jtag_callback_queue_reset(void)
+{
+ jtag_callback_queue_head = NULL;
+ jtag_callback_queue_tail = NULL;
+}
#endif
@@ -1583,10 +1589,8 @@
}
}
- jtag_callback_queue_head = NULL;
- jtag_callback_queue_tail = NULL;
-
jtag_command_queue_reset();
+ jtag_callback_queue_reset();
return retval;
}
|