* will stay invariant for the rest of the session.
*/
event = lttng_kernel_event_create(&event_enabler->parent, NULL);
- WARN_ON_ONCE(!event);
+ WARN_ON_ONCE(IS_ERR(event));
lttng_event_enabler_destroy(&event_enabler->parent);
if (IS_ERR(event)) {
ret = PTR_ERR(event);
goto event_notifier_error;
}
event = lttng_kernel_event_create(&event_notifier_enabler->parent, NULL);
- WARN_ON_ONCE(!event);
+ WARN_ON_ONCE(IS_ERR(event));
lttng_event_enabler_destroy(&event_notifier_enabler->parent);
if (IS_ERR(event)) {
ret = PTR_ERR(event);
* We need to create an event for this event probe.
*/
event = _lttng_kernel_event_create(event_enabler, desc);
- if (!event) {
+ if (IS_ERR(event)) {
printk(KERN_INFO "LTTng: Unable to create event %s\n",
probe_desc->event_desc[i]->event_name);
}
if (!event_recorder_enabler)
return;
event = _lttng_kernel_event_create(&event_recorder_enabler->parent, desc);
- WARN_ON_ONCE(!event || IS_ERR(event));
+ WARN_ON_ONCE(IS_ERR(event));
lttng_event_enabler_destroy(&event_recorder_enabler->parent);
- if (!event || IS_ERR(event)) {
+ if (IS_ERR(event)) {
printk(KERN_INFO "Unable to create event recorder %s\n", desc->event_name);
return;
}
&event_notifier_param, syscall_event_notifier_enabler->group);
WARN_ON_ONCE(!event_notifier_enabler);
event = _lttng_kernel_event_create(&event_notifier_enabler->parent, desc);
- WARN_ON_ONCE(!event || IS_ERR(event));
+ WARN_ON_ONCE(IS_ERR(event));
lttng_event_enabler_destroy(&event_notifier_enabler->parent);
- if (!event || IS_ERR(event)) {
+ if (IS_ERR(event)) {
printk(KERN_INFO "Unable to create event notifier %s\n", desc->event_name);
return;
}