]> git.sur5r.net Git - openocd/commit
Simplify and fix bug in jtag_tap_by_string:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Tue, 9 Jun 2009 02:23:27 +0000 (02:23 +0000)
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Tue, 9 Jun 2009 02:23:27 +0000 (02:23 +0000)
commit9f185eef7d69e3c9d4390f5f7dd78a7644b01c80
tree12328cf7849dc9e387e44cb4b0aef4974c402003
parent1c74d0e3a4037400e81147b15e2da09b033fb46f
Simplify and fix bug in jtag_tap_by_string:
- Bug fix: Use unsigned type and strtoul when parsing for position number.
- Simplify logic by returning directly when a tap is found by name.
- Reduce scope: declare temporary variables with first use.
- Bring code up to current style guidelines.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2141 b42882b7-edfa-0310-969c-e2dbd0fdcd60
src/jtag/jtag.c