diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-02 07:21:44 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-02 07:21:44 +0000 |
commit | 8dab0ecf2334330cd470f3fa483aadf78ee2a543 (patch) | |
tree | 879815d3d24ac6b25da10e0616bfc3a71a95e13b /src/jtag/jlink.c | |
parent | a372074d2124194acc08a861402419d7330948db (diff) | |
download | riscv-openocd-8dab0ecf2334330cd470f3fa483aadf78ee2a543.zip riscv-openocd-8dab0ecf2334330cd470f3fa483aadf78ee2a543.tar.gz riscv-openocd-8dab0ecf2334330cd470f3fa483aadf78ee2a543.tar.bz2 |
Remove unused code, TAP_INVALID is never passed to drivers.
git-svn-id: svn://svn.berlios.de/openocd/trunk@1997 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/jtag/jlink.c')
-rw-r--r-- | src/jtag/jlink.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/jtag/jlink.c b/src/jtag/jlink.c index accc6b5..b677535 100644 --- a/src/jtag/jlink.c +++ b/src/jtag/jlink.c @@ -157,8 +157,7 @@ static void jlink_execute_runtest(jtag_command_t *cmd) cmd->cmd.runtest->num_cycles, cmd->cmd.runtest->end_state); - if (cmd->cmd.runtest->end_state != TAP_INVALID) - jlink_end_state(cmd->cmd.runtest->end_state); + jlink_end_state(cmd->cmd.runtest->end_state); jlink_runtest(cmd->cmd.runtest->num_cycles); } @@ -167,10 +166,7 @@ static void jlink_execute_statemove(jtag_command_t *cmd) { DEBUG_JTAG_IO("statemove end in %i", cmd->cmd.statemove->end_state); - if (cmd->cmd.statemove->end_state != TAP_INVALID) - { - jlink_end_state(cmd->cmd.statemove->end_state); - } + jlink_end_state(cmd->cmd.statemove->end_state); jlink_state_move(); } @@ -192,8 +188,7 @@ static void jlink_execute_scan(jtag_command_t *cmd) DEBUG_JTAG_IO("scan end in %s", tap_state_name(cmd->cmd.scan->end_state)); - if (cmd->cmd.scan->end_state != TAP_INVALID) - jlink_end_state(cmd->cmd.scan->end_state); + jlink_end_state(cmd->cmd.scan->end_state); scan_size = jtag_build_buffer(cmd->cmd.scan, &buffer); DEBUG_JTAG_IO("scan input, length = %d", scan_size); |