]> git.sur5r.net Git - openocd/commitdiff
ft2232: bugfix from previous commit
authorSpencer Oliver <ntfreak@users.sourceforge.net>
Thu, 1 Jul 2010 18:43:58 +0000 (19:43 +0100)
committerSpencer Oliver <ntfreak@users.sourceforge.net>
Thu, 1 Jul 2010 18:43:58 +0000 (19:43 +0100)
fix build error with commit dd88b461da1cb8642200dd5c96fb1ff384ca9f7b

Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
src/jtag/drivers/ft2232.c

index 9d40b1c040f5790ccef5e3a1fa7eaca2404b45dc..90516a09bddb5d71bcd1aad6dd81cf2949a869b7 100644 (file)
@@ -4022,7 +4022,7 @@ static int signalyzer_h_init(void)
                buf[1] = high_output;
                buf[2] = high_direction;
 
-               if ((retval = ft2232_write(buf, sizeof(buf), &bytes_written)) != ERROR_OK)
+               if (ft2232_write(buf, sizeof(buf), &bytes_written) != ERROR_OK)
                {
                        LOG_ERROR("couldn't initialize Signalyzer-H layout");
                        return ERROR_JTAG_INIT_FAILED;