diff --git a/src/jtag/drivers/ft2232.c b/src/jtag/drivers/ft2232.c index 77b5880b1..c8a98d2d2 100644 --- a/src/jtag/drivers/ft2232.c +++ b/src/jtag/drivers/ft2232.c @@ -2396,7 +2396,7 @@ static int ft2232_init(void) } int jtag_speed_var; - int retval = jtag_get_speed(&jtag_speed_var); + retval = jtag_get_speed(&jtag_speed_var); if (retval != ERROR_OK) return retval; ft2232_speed(jtag_speed_var); diff --git a/src/jtag/drivers/parport.c b/src/jtag/drivers/parport.c index 3402bc2a0..b61f2f15e 100644 --- a/src/jtag/drivers/parport.c +++ b/src/jtag/drivers/parport.c @@ -477,7 +477,7 @@ COMMAND_HANDLER(parport_handle_parport_toggling_time_command) } parport_toggling_time_ns = ns; - int retval = jtag_get_speed(&wait_states); + retval = jtag_get_speed(&wait_states); if (retval != ERROR_OK) return retval; }