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
struct lttng_event_notifier_notification notif = { 0 };
size_t captures_left;
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;
if (notification_init(¬if, event_notifier))
goto error;