Skip to content
Snippets Groups Projects
Commit d706eb20 authored by zwelch's avatar zwelch
Browse files

Cleanup jtag_tap_count_enabled.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2139 b42882b7-edfa-0310-969c-e2dbd0fdcd60
parent ff85ad7c
Branches
Tags v1.1
No related merge requests found
...@@ -257,15 +257,12 @@ int jtag_tap_count(void) ...@@ -257,15 +257,12 @@ int jtag_tap_count(void)
unsigned jtag_tap_count_enabled(void) unsigned jtag_tap_count_enabled(void)
{ {
jtag_tap_t *t; jtag_tap_t *t = jtag_all_taps();
unsigned n; unsigned n = 0;
while(t)
n = 0; {
t = jtag_all_taps(); if (t->enabled)
while(t){
if( t->enabled ){
n++; n++;
}
t = t->next_tap; t = t->next_tap;
} }
return n; return n;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment