projects
/
fw
/
openocd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e521f64
)
jtag: fix shadow issues in adapter_init
author
Spencer Oliver
<ntfreak@users.sourceforge.net>
Mon, 12 Jul 2010 19:04:57 +0000
(20:04 +0100)
committer
Spencer 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
patch
|
blob
|
history
diff --git
a/src/jtag/core.c
b/src/jtag/core.c
index f7bbe8dcd7d97f7bbb6c63c296390e064f4ef0e0..352985ff3f790d115b3028100d424ddc720ba640 100644
(file)
--- 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);