summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2010-07-07 14:31:07 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-07-07 15:09:13 +0200
commitccaa9edf295e2c763c5a3c32a3f901b1637b99c5 (patch)
tree6baef5ca72dd4fb82739148d788ebeb64482fc08
parent3099858c68fd3a5f9960daea429198c0fc5a0f10 (diff)
downloadopenocd+libswd-ccaa9edf295e2c763c5a3c32a3f901b1637b99c5.tar.gz
openocd+libswd-ccaa9edf295e2c763c5a3c32a3f901b1637b99c5.tar.bz2
openocd+libswd-ccaa9edf295e2c763c5a3c32a3f901b1637b99c5.tar.xz
openocd+libswd-ccaa9edf295e2c763c5a3c32a3f901b1637b99c5.zip
transport: fix bug/typo in interface_transports command
Classic manifestation of weakness of dangling { formatting :-) Hard to spot these sort of mistakes visually. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
-rw-r--r--src/jtag/adapter.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jtag/adapter.c b/src/jtag/adapter.c
index 15b3ddc2..37e6ee9a 100644
--- a/src/jtag/adapter.c
+++ b/src/jtag/adapter.c
@@ -101,14 +101,15 @@ COMMAND_HANDLER(interface_transport_command)
retval = CALL_COMMAND_HANDLER(transport_list_parse, &transports);
if (retval != ERROR_OK) {
return retval;
+ }
retval = allow_transports(CMD_CTX, (const char **)transports);
+
if (retval != ERROR_OK) {
for (unsigned i = 0; transports[i]; i++)
free(transports[i]);
free(transports);
}
- }
return retval;
}