From: Mathieu Desnoyers Date: Wed, 28 Sep 2022 14:44:05 +0000 (-0400) Subject: Fix: event notification: Remove duplicate event enabled check X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=cbb2c0a178a4154ec086c73b3247c255b8ac1fea;p=lttng-modules.git 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 --- 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;