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:
parent
e521f6415b
commit
f129ef67dc
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue