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:
Spencer Oliver 2010-07-12 20:04:57 +01:00
parent e521f6415b
commit f129ef67dc
1 changed files with 0 additions and 1 deletions

View File

@ -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);