From d7b6eb89e8cf28513029db5418d8a93213257f7c Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 13 Apr 2021 15:34:40 -0400 Subject: [PATCH] Cleanup: use desc variable rather than deeply nested desc pointer Those point to the same descriptor. Signed-off-by: Mathieu Desnoyers Change-Id: Ia69ee46e9f59970faebb0826e9b22146d80510af --- src/lib/lttng-ust/lttng-events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.34.1