Cleanup: use desc variable rather than deeply nested desc pointer
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 13 Apr 2021 19:34:40 +0000 (15:34 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 13 Apr 2021 19:34:40 +0000 (15:34 -0400)
Those point to the same descriptor.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Ia69ee46e9f59970faebb0826e9b22146d80510af

src/lib/lttng-ust/lttng-events.c

index 1981726f4eaac3d40b8bb6a1f1381b2a8a575a81..e4e255904fbfe5f3d0212efbf8f8e6d4dfaa0bf6 100644 (file)
@@ -780,7 +780,7 @@ int lttng_event_recorder_create(const struct lttng_ust_event_desc *desc,
        event_recorder->parent->priv->desc = desc;
 
        if (desc->loglevel)
-               loglevel = *(*event_recorder->parent->priv->desc->loglevel);
+               loglevel = *(*desc->loglevel);
        else
                loglevel = TRACE_DEFAULT;
        if (desc->model_emf_uri)
This page took 0.026914 seconds and 4 git commands to generate.