From: Mathieu Desnoyers Date: Fri, 21 Feb 2014 17:54:07 +0000 (-0500) Subject: Cleanup: remove logically dead code X-Git-Tag: v2.3.2~5 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=9f65ef2fbe7ca97bd020e95cc18dc4b17517066b;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 26601a67..4bd2b937 100644 --- a/liblttng-ust/lttng-events.c +++ b/liblttng-ust/lttng-events.c @@ -106,8 +106,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) {