From: Mathieu Desnoyers Date: Mon, 14 Mar 2022 15:23:17 +0000 (-0400) Subject: Cleanup: Remove dead code in _lttng_kernel_event_create() X-Git-Url: https://git.liburcu.org/?p=lttng-modules.git;a=commitdiff_plain;h=194da3304f45f2f9c6006d2f377cd4db5cb7123f Cleanup: Remove dead code in _lttng_kernel_event_create() Found by Coverity: >>> CID 1476251: (DEADCODE) >>> Execution cannot reach this statement: "case LTTNG_KERNEL_ABI_NOOP:". >>> CID 1476251: (DEADCODE) >>> Execution cannot reach this statement: "case LTTNG_KERNEL_ABI_FUNCT...". Signed-off-by: Mathieu Desnoyers Change-Id: I16918b687fdc302a476b3d10d64da4fbd6ce95be --- diff --git a/src/lttng-events.c b/src/lttng-events.c index 4ddf4a77..dab3a0e1 100644 --- a/src/lttng-events.c +++ b/src/lttng-events.c @@ -1270,10 +1270,6 @@ struct lttng_kernel_event_common *_lttng_kernel_event_create(struct lttng_event_ WARN_ON_ONCE(!ret); break; - case LTTNG_KERNEL_ABI_FUNCTION: - lttng_fallthrough; - case LTTNG_KERNEL_ABI_NOOP: - lttng_fallthrough; default: WARN_ON_ONCE(1); ret = -EINVAL;