diff options
author | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-06-21 13:32:16 +0200 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-06-21 13:43:36 +0200 |
commit | 2fbb0b5972b04e10090e39137817e9f359fb6105 (patch) | |
tree | f05ab18b765753e2ccd26d92e8805dbde3cb899f /src | |
parent | dcba0709580cd8b0d2869894d2f7e22195b7e3d7 (diff) | |
download | openocd+libswd-2fbb0b5972b04e10090e39137817e9f359fb6105.tar.gz openocd+libswd-2fbb0b5972b04e10090e39137817e9f359fb6105.tar.bz2 openocd+libswd-2fbb0b5972b04e10090e39137817e9f359fb6105.tar.xz openocd+libswd-2fbb0b5972b04e10090e39137817e9f359fb6105.zip |
jtag: retire jtag_get_error()
This fn is an implementation detail of jtag_execute_queue()
that is not to be exposed externally.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/jtag/core.c | 11 | ||||
-rw-r--r-- | src/jtag/jtag.h | 2 |
2 files changed, 4 insertions, 9 deletions
diff --git a/src/jtag/core.c b/src/jtag/core.c index 65ca8245..782f10f7 100644 --- a/src/jtag/core.c +++ b/src/jtag/core.c @@ -52,9 +52,9 @@ static void jtag_add_scan_check(struct jtag_tap *active, * when an error occurs during processing that should be reported during * jtag_execute_queue(). * - * Tts value may be checked with jtag_get_error() and cleared with - * jtag_error_clear(). This value is returned (and cleared) by - * jtag_execute_queue(). + * The value is set and cleared, but never read by normal application code. + * + * This value is returned (and cleared) by jtag_execute_queue(). */ static int jtag_error = ERROR_OK; @@ -131,10 +131,7 @@ void jtag_set_error(int error) return; jtag_error = error; } -int jtag_get_error(void) -{ - return jtag_error; -} + int jtag_error_clear(void) { int temp = jtag_error; diff --git a/src/jtag/jtag.h b/src/jtag/jtag.h index cdc02ab7..97ceb013 100644 --- a/src/jtag/jtag.h +++ b/src/jtag/jtag.h @@ -661,8 +661,6 @@ void jtag_sleep(uint32_t us); * called with a non-zero error code. */ void jtag_set_error(int error); -/// @returns The current value of jtag_error -int jtag_get_error(void); /** * Resets jtag_error to ERROR_OK, returning its previous value. * @returns The previous value of @c jtag_error. |