]> git.sur5r.net Git - openocd/commitdiff
use assert() for obscure check on illegal arguments upon trst being asserted while...
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Wed, 3 Jun 2009 16:36:01 +0000 (16:36 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Wed, 3 Jun 2009 16:36:01 +0000 (16:36 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@2033 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/jtag/jtag.c

index a74c0ad45040c0aec5773bd635744b4984b98c26..61a9f8d5f1dac93b68ff89baa1d95db2e7d59355 100644 (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);