diff options
author | Eric Engestrom <eric@engestrom.ch> | 2016-04-02 17:02:41 +0100 |
---|---|---|
committer | Bryce Harrington <bryce@osg.samsung.com> | 2016-04-05 15:57:30 -0700 |
commit | f8cdb24959cf8d3f19934ee43810a5c1a48a4f21 (patch) | |
tree | 84b82a8c0e1d8bbe53ea7641a51c5984811eeab4 /tools | |
parent | c49aa5acada6045f084bbacdb545143c3828b5d0 (diff) |
zunitc: remove `break` after `return`
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/zunitc/src/zuc_base_logger.c | 6 | ||||
-rw-r--r-- | tools/zunitc/src/zunitc_impl.c | 11 |
2 files changed, 0 insertions, 17 deletions
diff --git a/tools/zunitc/src/zuc_base_logger.c b/tools/zunitc/src/zuc_base_logger.c index 1beb60d2..cdbd9ea5 100644 --- a/tools/zunitc/src/zuc_base_logger.c +++ b/tools/zunitc/src/zuc_base_logger.c @@ -310,22 +310,16 @@ zuc_get_opstr(enum zuc_check_op op) switch (op) { case ZUC_OP_EQ: return "="; - break; case ZUC_OP_NE: return "!="; - break; case ZUC_OP_GE: return ">="; - break; case ZUC_OP_GT: return ">"; - break; case ZUC_OP_LE: return "<="; - break; case ZUC_OP_LT: return "<"; - break; default: return "???"; } diff --git a/tools/zunitc/src/zunitc_impl.c b/tools/zunitc/src/zunitc_impl.c index 6f591f08..58a5b174 100644 --- a/tools/zunitc/src/zunitc_impl.c +++ b/tools/zunitc/src/zunitc_impl.c @@ -1066,7 +1066,6 @@ spawn_test(struct zuc_test *test, void *test_data, zuc_cleanup(); exit(rc); - break; } default: { /* parent */ ssize_t rc = 0; @@ -1519,40 +1518,30 @@ get_pred2(enum zuc_check_op op, enum zuc_check_valtype valtype) switch (op) { case ZUC_OP_TRUE: return pred2_true; - break; case ZUC_OP_FALSE: return pred2_false; - break; case ZUC_OP_NULL: return pred2_false; - break; case ZUC_OP_NOT_NULL: return pred2_true; - break; case ZUC_OP_EQ: if (valtype == ZUC_VAL_CSTR) return pred2_streq; else return pred2_eq; - break; case ZUC_OP_NE: if (valtype == ZUC_VAL_CSTR) return pred2_strne; else return pred2_ne; - break; case ZUC_OP_GE: return pred2_ge; - break; case ZUC_OP_GT: return pred2_gt; - break; case ZUC_OP_LE: return pred2_le; - break; case ZUC_OP_LT: return pred2_lt; - break; default: return pred2_unknown; } |