From: OpenOCD-Gerrit <ope...@us...> - 2021-10-25 16:13:55
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via 97db87c22eec204edfebd55973ee1211a1dba6d3 (commit) from bba2eecbc2b7d738e6f948b85ec420c084b28022 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 97db87c22eec204edfebd55973ee1211a1dba6d3 Author: Antonio Borneo <bor...@gm...> 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 <bor...@gm...> Reviewed-on: https://review.openocd.org/c/openocd/+/6638 Tested-by: jenkins Reviewed-by: Tomas Vanek <va...@fb...> diff --git a/src/jtag/core.c b/src/jtag/core.c index 51875a00a..2de5fda47 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; @@ -1804,7 +1803,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; ----------------------------------------------------------------------- Summary of changes: src/jtag/core.c | 2 -- 1 file changed, 2 deletions(-) hooks/post-receive -- Main OpenOCD repository |