X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fjtag%2Fdrivers%2Fbitq.c;h=55dfe0aa44e9c5a8b4b501d852246ee75c0f8d32;hb=eb8dfd5ca8af6f2d784f6b1d30c96b40c52ae0ce;hp=1d0ff09b679c537b79a9d1e9c43b7cb75fbe13c5;hpb=08d4411b59dd8bd0e7d8009003b71d23acbf6eee;p=openocd.git diff --git a/src/jtag/drivers/bitq.c b/src/jtag/drivers/bitq.c index 1d0ff09b67..55dfe0aa44 100644 --- a/src/jtag/drivers/bitq.c +++ b/src/jtag/drivers/bitq.c @@ -13,9 +13,7 @@ * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * -* along with this program; if not, write to the * -* Free Software Foundation, Inc., * -* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * +* along with this program. If not, see . * ***************************************************************************/ #ifdef HAVE_CONFIG_H @@ -125,7 +123,7 @@ static void bitq_path_move(struct pathmove_command *cmd) { int i; - for (i = 0; i <= cmd->num_states; i++) { + for (i = 0; i < cmd->num_states; i++) { if (tap_state_transition(tap_get_state(), false) == cmd->path[i]) bitq_io(0, 0, 0); else if (tap_state_transition(tap_get_state(), true) == cmd->path[i])