Remove duplicated initialization
authorAlexander Stein <alexander.stein@informatik.tu-chemnitz.de>
Wed, 8 Sep 2010 08:17:54 +0000 (10:17 +0200)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Wed, 8 Sep 2010 08:34:43 +0000 (10:34 +0200)
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>
src/jtag/core.c

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