Fix: event notification: Remove duplicate event enabled check
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 28 Sep 2022 14:44:05 +0000 (10:44 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 28 Sep 2022 18:23:28 +0000 (14:23 -0400)
The event enabled checks are already done by the event notification
callers, so there is no point in checking it again.

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

src/lttng-event-notifier-notification.c

index 957883a801e6651e48b307ba3320e688f740b25b..a4e945673633a4cc7c761a73aa388b5678c74106 100644 (file)
@@ -463,9 +463,6 @@ void lttng_event_notifier_notification_send(struct lttng_kernel_event_notifier *
        struct lttng_event_notifier_notification notif = { 0 };
        size_t captures_left;
 
-       if (unlikely(!READ_ONCE(event_notifier->parent.enabled)))
-               return;
-
        if (notification_init(&notif, event_notifier))
                goto error;
 
This page took 0.026675 seconds and 4 git commands to generate.