diff options
author | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-09 08:41:08 +0000 |
---|---|---|
committer | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-09 08:41:08 +0000 |
commit | a2d18e9111d3bd9a504e15b16a5d8b4bdbded29b (patch) | |
tree | e07bc873c1b6b410c3a542b0566a4de2f045471d /src/jtag/tcl.c | |
parent | 55be316dbf13dcb1cc54c41330ac37960e82630e (diff) | |
download | riscv-openocd-a2d18e9111d3bd9a504e15b16a5d8b4bdbded29b.zip riscv-openocd-a2d18e9111d3bd9a504e15b16a5d8b4bdbded29b.tar.gz riscv-openocd-a2d18e9111d3bd9a504e15b16a5d8b4bdbded29b.tar.bz2 |
Properly encapsulate core hasKHZ variable.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2165 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/jtag/tcl.c')
-rw-r--r-- | src/jtag/tcl.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/jtag/tcl.c b/src/jtag/tcl.c index 1ec307a..99ed1a3 100644 --- a/src/jtag/tcl.c +++ b/src/jtag/tcl.c @@ -39,8 +39,6 @@ #include <strings.h> #endif -extern bool hasKHz; - extern const Jim_Nvp nvp_jtag_tap_event[]; /* jtag interfaces (parport, FTDI-USB, TI-USB, ...) @@ -994,11 +992,8 @@ static int handle_jtag_khz_command(struct command_context_s *cmd_ctx, char *cmd, return retval; } cur_speed = speed_div1; - - retval = jtag_set_speed(cur_speed); } - else - hasKHz = true; + retval = jtag_set_speed(cur_speed); } cur_speed = jtag_get_speed_khz(); |