Factoring of jtag_examine_chain for maintainability:
- Reduce indent: invert logic test for tap in jtag_examine_chain. git-svn-id: svn://svn.berlios.de/openocd/trunk@2080 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
parent
401d6472cc
commit
32350a5006
|
@ -1052,8 +1052,10 @@ static int jtag_examine_chain(void)
|
||||||
|
|
||||||
bit_count += 32;
|
bit_count += 32;
|
||||||
}
|
}
|
||||||
if (tap)
|
device_count++;
|
||||||
{
|
if (!tap)
|
||||||
|
continue;
|
||||||
|
|
||||||
tap->idcode = idcode;
|
tap->idcode = idcode;
|
||||||
|
|
||||||
if (tap->expected_ids_cnt > 0) {
|
if (tap->expected_ids_cnt > 0) {
|
||||||
|
@ -1096,8 +1098,6 @@ static int jtag_examine_chain(void)
|
||||||
}
|
}
|
||||||
tap = jtag_tap_next_enabled(tap);
|
tap = jtag_tap_next_enabled(tap);
|
||||||
}
|
}
|
||||||
device_count++;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* see if number of discovered devices matches configuration */
|
/* see if number of discovered devices matches configuration */
|
||||||
if (device_count != jtag_tap_count_enabled())
|
if (device_count != jtag_tap_count_enabled())
|
||||||
|
|
Loading…
Reference in New Issue