mirror of
https://github.com/linux-msm/openocd.git
synced 2026-02-25 13:15:07 -08:00
jtag: fix shadow issues in adapter_init
Use global jtag_only rather than local static. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
This commit is contained in:
@@ -1357,7 +1357,6 @@ int adapter_init(struct command_context *cmd_ctx)
|
||||
* the legacy drivers are JTAG-only
|
||||
*/
|
||||
if (!transports_are_declared()) {
|
||||
static const char *jtag_only[] = { "jtag", NULL, };
|
||||
LOG_ERROR("Adapter driver '%s' did not declare "
|
||||
"which transports it allows; assuming "
|
||||
"JTAG-only", jtag->name);
|
||||
|
||||
Reference in New Issue
Block a user