Browse Source

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>
tags/v0.5.0-rc1
Alexander Stein 13 years ago
committed by Øyvind Harboe
parent
commit
a40f12d626
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      src/jtag/core.c

+ 0
- 1
src/jtag/core.c View File

@@ -1648,7 +1648,6 @@ int jtag_get_speed(void)
break;
default:
LOG_ERROR("BUG: unknown jtag clock mode");
speed = 0;
break;
}
return speed;


Loading…
Cancel
Save