From a40f12d62693042415c46bcc95b0bd86d9eaea81 Mon Sep 17 00:00:00 2001 From: Alexander Stein Date: Wed, 8 Sep 2010 10:17:54 +0200 Subject: [PATCH] Remove duplicated initialization MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit I a mail conversation with Øyvind we stated that speed may not be set at all on case CLOCK_MODE_KHZ and CLOCK_MODE_RCLK. Also there isn't proper error propagation adapter_khz_to_speed or jtag_rclk_to_speed. So jtag_get_speed may need some rewrite for error propagation. CC: Øyvind Harboe Signed-off-by: Alexander Stein Signed-off-by: Øyvind Harboe --- src/jtag/core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/jtag/core.c b/src/jtag/core.c index dd3a2a6164..c1b64bba41 100644 --- a/src/jtag/core.c +++ b/src/jtag/core.c @@ -1648,7 +1648,6 @@ int jtag_get_speed(void) break; default: LOG_ERROR("BUG: unknown jtag clock mode"); - speed = 0; break; } return speed; -- 2.30.2