X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-test.git;a=blobdiff_plain;f=decoder%2Fruntc.c;h=4b534a2564048ae52188c02f2f1d040f9ec1f071;hp=c7462b4e7f06e69266a9bbebf17e17bec0a1343c;hb=59060ffcaada7201ad6942ce2c9bb67361ccbddd;hpb=ecec131bb8d14e70fdcde1b71be6d35a90999ee5 diff --git a/decoder/runtc.c b/decoder/runtc.c index c7462b4..4b534a2 100644 --- a/decoder/runtc.c +++ b/decoder/runtc.c @@ -459,16 +459,16 @@ static int run_testcase(const char *infile, GSList *pdlist, struct output *op) if (!strcmp(decoder_class[0], op->class)) { op->class_idx = idx; break; - } else - idx++; + } + idx++; l = l->next; } if (op->class_idx == -1) { ERR("Output class '%s' not found in decoder %s.", op->class, pd->name); return FALSE; - } else - DBG("Class %s index is %d", op->class, op->class_idx); + } + DBG("Class %s index is %d", op->class, op->class_idx); } sr_session_start(sr_sess);