From f129ef67dcd96bdd98bf27c13ffbf23b7ca5ee66 Mon Sep 17 00:00:00 2001 From: Spencer Oliver Date: Mon, 12 Jul 2010 20:04:57 +0100 Subject: [PATCH] jtag: fix shadow issues in adapter_init Use global jtag_only rather than local static. Signed-off-by: Spencer Oliver --- src/jtag/core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/jtag/core.c b/src/jtag/core.c index f7bbe8dc..352985ff 100644 --- a/src/jtag/core.c +++ b/src/jtag/core.c @@ -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); -- 2.39.5