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>
This commit is contained in:
Alexander Stein 2010-09-08 10:17:54 +02:00 committed by Øyvind Harboe
parent 98a66c4809
commit a40f12d626
1 changed files with 0 additions and 1 deletions

View File

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