diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-03-01 08:41:02 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-03-01 08:41:02 +0000 |
commit | 9d527a007111ede54f2514e319e2f591590c38f2 (patch) | |
tree | 50da51d98cb56a6f238961475b85bdce9c6d1f17 | |
parent | a6d6a94c9dd3708eec2f980d42f1b1f0e155b61f (diff) | |
download | openocd_libswd-9d527a007111ede54f2514e319e2f591590c38f2.tar.gz openocd_libswd-9d527a007111ede54f2514e319e2f591590c38f2.tar.bz2 openocd_libswd-9d527a007111ede54f2514e319e2f591590c38f2.tar.xz openocd_libswd-9d527a007111ede54f2514e319e2f591590c38f2.zip |
error handling fix.
git-svn-id: svn://svn.berlios.de/openocd/trunk@405 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r-- | src/jtag/jtag.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/jtag/jtag.c b/src/jtag/jtag.c index e9802e17..aba37f0f 100644 --- a/src/jtag/jtag.c +++ b/src/jtag/jtag.c @@ -1189,17 +1189,16 @@ int MINIDRIVER(interface_jtag_execute_queue)(void) jtag_command_queue = NULL; last_comand_pointer = &jtag_command_queue; - jtag_error=ERROR_OK; - return retval; } int jtag_execute_queue(void) { int retval=interface_jtag_execute_queue(); - if (retval!=ERROR_OK) - return retval; - retval=jtag_error; + if (retval==ERROR_OK) + { + retval=jtag_error; + } jtag_error=ERROR_OK; return retval; } |