From 976f13d27b22a16333185cce11651c6ca4ae23c0 Mon Sep 17 00:00:00 2001 From: oharboe Date: Wed, 3 Jun 2009 16:36:01 +0000 Subject: [PATCH] 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 --- src/jtag/jtag.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/jtag/jtag.c b/src/jtag/jtag.c index a74c0ad4..61a9f8d5 100644 --- a/src/jtag/jtag.c +++ b/src/jtag/jtag.c @@ -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); -- 2.39.5