From: Mathieu Desnoyers Date: Tue, 13 Apr 2021 19:34:40 +0000 (-0400) Subject: Cleanup: use desc variable rather than deeply nested desc pointer X-Git-Tag: v2.13.0-rc1~109 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d7b6eb89e8cf28513029db5418d8a93213257f7c;p=lttng-ust.git Cleanup: use desc variable rather than deeply nested desc pointer Those point to the same descriptor. Signed-off-by: Mathieu Desnoyers Change-Id: Ia69ee46e9f59970faebb0826e9b22146d80510af --- diff --git a/src/lib/lttng-ust/lttng-events.c b/src/lib/lttng-ust/lttng-events.c index 1981726f..e4e25590 100644 --- a/src/lib/lttng-ust/lttng-events.c +++ b/src/lib/lttng-ust/lttng-events.c @@ -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)