summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Stein <alexander.stein@informatik.tu-chemnitz.de>2010-09-08 10:17:54 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-09-08 10:34:43 +0200
commita40f12d62693042415c46bcc95b0bd86d9eaea81 (patch)
tree50444b66d4c5381dea0cacdb5b06ee9e773e4152
parent98a66c48091be6c081f1b2fee04ef47e7f1c2070 (diff)
downloadopenocd_libswd-a40f12d62693042415c46bcc95b0bd86d9eaea81.tar.gz
openocd_libswd-a40f12d62693042415c46bcc95b0bd86d9eaea81.tar.bz2
openocd_libswd-a40f12d62693042415c46bcc95b0bd86d9eaea81.tar.xz
openocd_libswd-a40f12d62693042415c46bcc95b0bd86d9eaea81.zip
Remove duplicated initialization
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 <oyvind.harboe@zylin.com> Signed-off-by: Alexander Stein <alexander.stein@informatik.tu-chemnitz.de> Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
-rw-r--r--src/jtag/core.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/jtag/core.c b/src/jtag/core.c
index dd3a2a61..c1b64bba 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;