This is an automated email from Gerrit.

"Antonio Borneo <[email protected]>" just uploaded a new patch set to 
Gerrit, which you can find at https://review.openocd.org/c/openocd/+/6638

-- gerrit

commit d50ea342e52f24d9631c83b4981f36bfb20bb523
Author: Antonio Borneo <[email protected]>
Date:   Thu Oct 7 12:04:46 2021 +0200

    jtag/core: remove unused variable
    
    Commit e3f3f60a02ab ("adapter speed: require init script setting
    and centralize activation from drivers to core.c") has already
    dropped the only use of variable 'jtag_speed'.
    
    Remove the variable.
    
    Change-Id: Iff096df0022982cf90795aa62d6b3406203f7b14
    Signed-off-by: Antonio Borneo <[email protected]>

diff --git a/src/jtag/core.c b/src/jtag/core.c
index 7da2a6c35..b06c16d29 100644
--- a/src/jtag/core.c
+++ b/src/jtag/core.c
@@ -128,7 +128,6 @@ static int speed_khz;
 /* speed to fallback to when RCLK is requested but not supported */
 static int rclk_fallback_speed_khz;
 static enum {CLOCK_MODE_UNSELECTED, CLOCK_MODE_KHZ, CLOCK_MODE_RCLK} 
clock_mode;
-static int jtag_speed;
 
 /* FIXME: change name to this variable, it is not anymore JTAG only */
 static struct adapter_driver *jtag;
@@ -1805,7 +1804,6 @@ static int jtag_rclk_to_speed(unsigned 
fallback_speed_khz, int *speed)
 
 static int jtag_set_speed(int speed)
 {
-       jtag_speed = speed;
        /* this command can be called during CONFIG,
         * in which case jtag isn't initialized */
        return jtag ? jtag->speed(speed) : ERROR_OK;

-- 

Reply via email to