From cbb2c0a178a4154ec086c73b3247c255b8ac1fea Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Wed, 28 Sep 2022 10:44:05 -0400 Subject: [PATCH] Fix: event notification: Remove duplicate event enabled check 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 Change-Id: I8033c053d6a601cf646a008d5325d556dba5a8f9 --- src/lttng-event-notifier-notification.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/lttng-event-notifier-notification.c b/src/lttng-event-notifier-notification.c index 957883a8..a4e94567 100644 --- a/src/lttng-event-notifier-notification.c +++ b/src/lttng-event-notifier-notification.c @@ -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(¬if, event_notifier)) goto error; -- 2.34.1