use assert() for obscure check on illegal arguments upon trst being asserted while commands are queued

git-svn-id: svn://svn.berlios.de/openocd/trunk@2033 b42882b7-edfa-0310-969c-e2dbd0fdcd60
__archive__
oharboe 2009-06-03 16:36:01 +00:00
parent 0c57bc8be2
commit 976f13d27b
1 changed files with 1 additions and 6 deletions

View File

@ -387,12 +387,7 @@ int jtag_call_event_callbacks(enum jtag_event event)
static void jtag_prelude1(void)
{
if (jtag_trst == 1)
{
LOG_WARNING("JTAG command queued, while TRST is low (TAP in reset)");
jtag_error=ERROR_JTAG_TRST_ASSERTED;
return;
}
assert(jtag_trst == 0);
if (cmd_queue_end_state == TAP_RESET)
jtag_call_event_callbacks(JTAG_TRST_ASSERTED);