summaryrefslogtreecommitdiffstats
path: root/include/afb/afb-event-itf.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/afb/afb-event-itf.h')
-rw-r--r--include/afb/afb-event-itf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/afb/afb-event-itf.h b/include/afb/afb-event-itf.h
index 3d66a893..b1776ea0 100644
--- a/include/afb/afb-event-itf.h
+++ b/include/afb/afb-event-itf.h
@@ -52,7 +52,7 @@ struct afb_event
*/
static inline int afb_event_is_valid(struct afb_event event)
{
- return event.itf != NULL;
+ return !!event.itf;
}
/*