Eo callbacks: simplify callback call code a bit.
authorTom Hacohen <tom@stosb.com>
Thu, 15 Oct 2015 08:21:39 +0000 (09:21 +0100)
committerTom Hacohen <tom@stosb.com>
Mon, 9 Nov 2015 11:43:04 +0000 (11:43 +0000)
We don't need this check because it's already checked in the match function.

src/lib/eo/eo_base_class.c

index 99c348d..0801a9b 100644 (file)
@@ -709,8 +709,7 @@ _eo_base_event_callback_call(Eo *obj_id, Eo_Base_Data *pd,
                {
                   if (!_cb_desc_match(cb->items.item.desc, desc))
                     continue;
-                  if ((!cb->items.item.desc
-                       || !cb->items.item.desc->unfreezable) &&
+                  if (!cb->items.item.desc->unfreezable &&
                       (event_freeze_count || pd->event_freeze_count))
                     continue;