zunitc: remove `break` after `return`

Signed-off-by: Eric Engestrom <eric@engestrom.ch>
dev
Eric Engestrom 9 years ago committed by Bryce Harrington
parent c49aa5acad
commit f8cdb24959
  1. 6
      tools/zunitc/src/zuc_base_logger.c
  2. 11
      tools/zunitc/src/zunitc_impl.c

@ -310,22 +310,16 @@ zuc_get_opstr(enum zuc_check_op op)
switch (op) { switch (op) {
case ZUC_OP_EQ: case ZUC_OP_EQ:
return "="; return "=";
break;
case ZUC_OP_NE: case ZUC_OP_NE:
return "!="; return "!=";
break;
case ZUC_OP_GE: case ZUC_OP_GE:
return ">="; return ">=";
break;
case ZUC_OP_GT: case ZUC_OP_GT:
return ">"; return ">";
break;
case ZUC_OP_LE: case ZUC_OP_LE:
return "<="; return "<=";
break;
case ZUC_OP_LT: case ZUC_OP_LT:
return "<"; return "<";
break;
default: default:
return "???"; return "???";
} }

@ -1066,7 +1066,6 @@ spawn_test(struct zuc_test *test, void *test_data,
zuc_cleanup(); zuc_cleanup();
exit(rc); exit(rc);
break;
} }
default: { /* parent */ default: { /* parent */
ssize_t rc = 0; ssize_t rc = 0;
@ -1519,40 +1518,30 @@ get_pred2(enum zuc_check_op op, enum zuc_check_valtype valtype)
switch (op) { switch (op) {
case ZUC_OP_TRUE: case ZUC_OP_TRUE:
return pred2_true; return pred2_true;
break;
case ZUC_OP_FALSE: case ZUC_OP_FALSE:
return pred2_false; return pred2_false;
break;
case ZUC_OP_NULL: case ZUC_OP_NULL:
return pred2_false; return pred2_false;
break;
case ZUC_OP_NOT_NULL: case ZUC_OP_NOT_NULL:
return pred2_true; return pred2_true;
break;
case ZUC_OP_EQ: case ZUC_OP_EQ:
if (valtype == ZUC_VAL_CSTR) if (valtype == ZUC_VAL_CSTR)
return pred2_streq; return pred2_streq;
else else
return pred2_eq; return pred2_eq;
break;
case ZUC_OP_NE: case ZUC_OP_NE:
if (valtype == ZUC_VAL_CSTR) if (valtype == ZUC_VAL_CSTR)
return pred2_strne; return pred2_strne;
else else
return pred2_ne; return pred2_ne;
break;
case ZUC_OP_GE: case ZUC_OP_GE:
return pred2_ge; return pred2_ge;
break;
case ZUC_OP_GT: case ZUC_OP_GT:
return pred2_gt; return pred2_gt;
break;
case ZUC_OP_LE: case ZUC_OP_LE:
return pred2_le; return pred2_le;
break;
case ZUC_OP_LT: case ZUC_OP_LT:
return pred2_lt; return pred2_lt;
break;
default: default:
return pred2_unknown; return pred2_unknown;
} }

Loading…
Cancel
Save