*/
extern struct jtag_interface *jtag_interface;
-
-
+const char *jtag_only[] = { "jtag", NULL };
static int
jim_adapter_name(Jim_Interp *interp, int argc, Jim_Obj *const *argv)
return ERROR_OK;
}
-const char *jtag_only[] = { "jtag", NULL, };
-
-
COMMAND_HANDLER(interface_transport_command)
{
char **transports;
LOG_WARNING("Adapter driver '%s' did not declare "
"which transports it allows; assuming "
"legacy JTAG-only", jtag_interface->name);
- retval = allow_transports(CMD_CTX,
- jtag_interface->transports
- ? : jtag_only);
+ retval = allow_transports(CMD_CTX, jtag_interface->transports
+ ? jtag_interface->transports : jtag_only);
if (ERROR_OK != retval)
return retval;