From 74558296d1e185fc4a7522f08832eceed460cbd7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Harboe?= Date: Tue, 8 Nov 2011 21:41:35 +0100 Subject: [PATCH] usbprog: fix unecessary and confusing assignment MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit clang found silly code that was trivially fixed. Change-Id: Ied6c1b254c1823cd111140cbe0c8a03d2ede65fb Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/186 Tested-by: jenkins Reviewed-by: Peter Stuge --- src/jtag/drivers/usbprog.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/jtag/drivers/usbprog.c b/src/jtag/drivers/usbprog.c index 3b8a6130..225a3c59 100644 --- a/src/jtag/drivers/usbprog.c +++ b/src/jtag/drivers/usbprog.c @@ -454,7 +454,6 @@ static void usbprog_jtag_write_and_read(struct usbprog_jtag *usbprog_jtag, char tmp[0] = WRITE_AND_READ; tmp[1] = (char)(send_bits >> 8); /* high */ tmp[2] = (char)(send_bits); /* low */ - i = 0; for (i = 0; i < loops; i++) { @@ -555,7 +554,6 @@ static void usbprog_jtag_write_tdi(struct usbprog_jtag *usbprog_jtag, char * buf tmp[0] = WRITE_TDI; tmp[1] = (char)(send_bits >> 8); /* high */ tmp[2] = (char)(send_bits); /* low */ - i = 0; for (i = 0; i < loops; i++) { -- 2.39.5