From: oharboe Date: Wed, 3 Jun 2009 16:36:01 +0000 (+0000) Subject: use assert() for obscure check on illegal arguments upon trst being asserted while... X-Git-Tag: v0.2.0~477 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=976f13d27b22a16333185cce11651c6ca4ae23c0;p=openocd 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 --- 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);