From: Mathieu Desnoyers Date: Fri, 21 Feb 2014 17:54:07 +0000 (-0500) Subject: Cleanup: remove logically dead code X-Git-Tag: v2.4.0~15 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=128cf0ddb55234bca094ba4523fa3b5cb653fba3;p=lttng-ust.git Cleanup: remove logically dead code CID 1021235 (#1 of 1): Logically dead code (DEADCODE) dead_error_line: Execution cannot reach this statement "case LTTNG_UST_LOGLEVEL_ALL:". Signed-off-by: Mathieu Desnoyers --- diff --git a/liblttng-ust/lttng-events.c b/liblttng-ust/lttng-events.c index 55d84f05..03acff11 100644 --- a/liblttng-ust/lttng-events.c +++ b/liblttng-ust/lttng-events.c @@ -100,8 +100,6 @@ int lttng_loglevel_match(int loglevel, enum lttng_ust_loglevel_type req_type, int req_loglevel) { - if (req_type == LTTNG_UST_LOGLEVEL_ALL) - return 1; if (!has_loglevel) loglevel = TRACE_DEFAULT; switch (req_type) {