jtag: getting the JTAG speed can fail
If the JTAG speed has not been set, then it has no defined value, add code to propagate the error. No change to actual behavior as no new failure paths have been introduced. This is a no-op patch to make subsequent patches smaller. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
This commit is contained in:
@@ -1620,7 +1620,11 @@ int zy1000_init(void)
|
||||
|
||||
/* deassert resets. Important to avoid infinite loop waiting for SRST to deassert */
|
||||
zy1000_reset(0, 0);
|
||||
zy1000_speed(jtag_get_speed());
|
||||
int jtag_speed_var;
|
||||
int retval = jtag_get_speed(&jtag_speed_var);
|
||||
if (retval != ERROR_OK)
|
||||
return retval;
|
||||
zy1000_speed(jtag_speed_var);
|
||||
|
||||
|
||||
#if BUILD_ECOSBOARD
|
||||
|
||||
Reference in New Issue
Block a user