Cleanup: Remove dead code in _lttng_kernel_event_create()
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 14 Mar 2022 15:23:17 +0000 (11:23 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 14 Mar 2022 15:38:24 +0000 (11:38 -0400)
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 <mathieu.desnoyers@efficios.com>
Change-Id: I16918b687fdc302a476b3d10d64da4fbd6ce95be

src/lttng-events.c

index 4ddf4a77774a89d22ff74bdf5f3e7dd96e0c93c8..dab3a0e1e5e8359b55a82e9090d9c2f4dc3b66ed 100644 (file)
@@ -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;
This page took 0.027186 seconds and 4 git commands to generate.