fix return value for "reset" and "runtest" command. Found by code inspection.
--
Øyvind Harboe
Embedded software and hardware consulting services
http://www.zylin.com
### Eclipse Workspace Patch 1.0
#P openocd
Index: src/jtag/tcl.c
===================================================================
--- src/jtag/tcl.c (revision 2478)
+++ src/jtag/tcl.c (working copy)
@@ -1016,9 +1016,7 @@
return ERROR_JTAG_INIT_FAILED;
jtag_add_reset(trst, srst);
- jtag_execute_queue();
-
- return ERROR_OK;
+ return jtag_execute_queue();
}
static int handle_runtest_command(struct command_context_s *cmd_ctx,
@@ -1033,9 +1031,7 @@
return retval;
jtag_add_runtest(num_clocks, TAP_IDLE);
- jtag_execute_queue();
-
- return ERROR_OK;
+ return jtag_execute_queue();
}
/*
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development