]> git.sur5r.net Git - openocd/commitdiff
jtag: fix shadow issues in adapter_init
authorSpencer Oliver <ntfreak@users.sourceforge.net>
Mon, 12 Jul 2010 19:04:57 +0000 (20:04 +0100)
committerSpencer Oliver <ntfreak@users.sourceforge.net>
Mon, 12 Jul 2010 19:04:57 +0000 (20:04 +0100)
Use global jtag_only rather than local static.

Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
src/jtag/core.c

index f7bbe8dcd7d97f7bbb6c63c296390e064f4ef0e0..352985ff3f790d115b3028100d424ddc720ba640 100644 (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);