X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=include%2Fafb%2Fafb-event-itf.h;h=b1776ea0d9ba655583ac1a9d10509bda6571197c;hb=a63851bb4726c89d9a3c5755d78d1c4bbc3f3b2e;hp=3d66a893fe71b4ff7649bd888053c0762253dbe5;hpb=9ee5ae1883c58527f9cb63b7bafeb2f1d59e37ec;p=src%2Fapp-framework-binder.git 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; } /*