aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkc8apf <kc8apf@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-21 04:43:48 +0000
committerkc8apf <kc8apf@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-21 04:43:48 +0000
commit2783a940e299b6325a8f2245a264213d12b3fc8f (patch)
tree332d74a31b381f61bc13e66b4c8d2321f2953797
parent8cb3e95b39e78bf6e41b31c383b7a364fd0bc45f (diff)
downloadriscv-openocd-2783a940e299b6325a8f2245a264213d12b3fc8f.zip
riscv-openocd-2783a940e299b6325a8f2245a264213d12b3fc8f.tar.gz
riscv-openocd-2783a940e299b6325a8f2245a264213d12b3fc8f.tar.bz2
Author: Michael Bruck <mbruck@digenius.de>
- jtag.c: remove unused variable 'nth_tap' from DR scan functions git-svn-id: svn://svn.berlios.de/openocd/trunk@1863 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r--src/jtag/jtag.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/jtag/jtag.c b/src/jtag/jtag.c
index f5428aa..601ba61 100644
--- a/src/jtag/jtag.c
+++ b/src/jtag/jtag.c
@@ -818,7 +818,6 @@ void jtag_add_dr_scan(int in_num_fields, const scan_field_t *in_fields, tap_stat
int MINIDRIVER(interface_jtag_add_dr_scan)(int in_num_fields, const scan_field_t *in_fields, tap_state_t state)
{
int j;
- int nth_tap;
int field_count = 0;
/* count devices in bypass */
@@ -845,12 +844,8 @@ int MINIDRIVER(interface_jtag_add_dr_scan)(int in_num_fields, const scan_field_t
scan->fields = out_fields;
scan->end_state = state;
- nth_tap = -1;
-
for (jtag_tap_t * tap = jtag_NextEnabledTap(NULL); tap != NULL; tap = jtag_NextEnabledTap(tap))
{
- nth_tap++;
-
int found = 0;
scan->fields[field_count].tap = tap;
@@ -922,7 +917,6 @@ void MINIDRIVER(interface_jtag_add_dr_out)(jtag_tap_t *target_tap,
const u32 *value,
tap_state_t end_state)
{
- int nth_tap;
int field_count = 0;
/* count devices in bypass */
@@ -950,11 +944,8 @@ void MINIDRIVER(interface_jtag_add_dr_out)(jtag_tap_t *target_tap,
scan->fields = out_fields;
scan->end_state = end_state;
- nth_tap = -1;
-
for (jtag_tap_t * tap = jtag_NextEnabledTap(NULL); tap != NULL; tap = jtag_NextEnabledTap(tap))
{
- nth_tap++;
scan->fields[field_count].tap = tap;
if (tap == target_tap)