X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fjtag%2Fhla%2Fhla_tcl.c;fp=src%2Fjtag%2Fhla%2Fhla_tcl.c;h=5aa330145452b9f34a30453127167bd1501ab085;hp=bd26ec54ed0bce459a1eec8418c9e724c56ea5de;hb=28c24a5c41c47a66e9310912f88148814f730a25;hpb=bba48b057cdc4f26721e06a5310652dcf0e55873 diff --git a/src/jtag/hla/hla_tcl.c b/src/jtag/hla/hla_tcl.c index bd26ec54ed..5aa3301454 100644 --- a/src/jtag/hla/hla_tcl.c +++ b/src/jtag/hla/hla_tcl.c @@ -122,7 +122,7 @@ static int jim_hl_newtap_cmd(struct jim_getopt_info *goi) switch (n->value) { case NTAP_OPT_EXPECTED_ID: e = jim_newtap_expected_id(n, goi, tap); - if (JIM_OK != e) { + if (e != JIM_OK) { free(cp); free(tap); return e;