From 17201b584776704c80ac5089874f244757b3744e Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Harboe?= Date: Sun, 20 Mar 2011 19:44:48 +0100 Subject: [PATCH] dsp563xx_once: fix warning and potential bug MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit I don't think dsp563xx_once_read_register() would ever be called with len==0, but it would have been broken in that case. Signed-off-by: Øyvind Harboe --- src/target/dsp563xx_once.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/target/dsp563xx_once.c b/src/target/dsp563xx_once.c index d95dcdfd32..267f475e51 100644 --- a/src/target/dsp563xx_once.c +++ b/src/target/dsp563xx_once.c @@ -188,7 +188,7 @@ int dsp563xx_once_request_debug(struct jtag_tap *tap, int reset_state) int dsp563xx_once_read_register(struct jtag_tap *tap, int flush, struct once_reg *regs, int len) { int i; - int err; + int err = ERROR_OK; for (i = 0; i < len; i++) { -- 2.30.2