From: Tom Hacohen Date: Thu, 15 Oct 2015 08:21:39 +0000 (+0100) Subject: Eo callbacks: simplify callback call code a bit. X-Git-Tag: upstream/1.20.0~8330 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9d68b143130ba825cfd2732ff4fdb2be51ab5a32;p=platform%2Fupstream%2Fefl.git Eo callbacks: simplify callback call code a bit. We don't need this check because it's already checked in the match function. --- diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c index 99c348d..0801a9b 100644 --- a/src/lib/eo/eo_base_class.c +++ b/src/lib/eo/eo_base_class.c @@ -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;