error handling fix.
git-svn-id: svn://svn.berlios.de/openocd/trunk@405 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
parent
a6d6a94c9d
commit
9d527a0071
|
@ -1189,17 +1189,16 @@ int MINIDRIVER(interface_jtag_execute_queue)(void)
|
||||||
jtag_command_queue = NULL;
|
jtag_command_queue = NULL;
|
||||||
last_comand_pointer = &jtag_command_queue;
|
last_comand_pointer = &jtag_command_queue;
|
||||||
|
|
||||||
jtag_error=ERROR_OK;
|
|
||||||
|
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
int jtag_execute_queue(void)
|
int jtag_execute_queue(void)
|
||||||
{
|
{
|
||||||
int retval=interface_jtag_execute_queue();
|
int retval=interface_jtag_execute_queue();
|
||||||
if (retval!=ERROR_OK)
|
if (retval==ERROR_OK)
|
||||||
return retval;
|
{
|
||||||
retval=jtag_error;
|
retval=jtag_error;
|
||||||
|
}
|
||||||
jtag_error=ERROR_OK;
|
jtag_error=ERROR_OK;
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue