summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2015-10-15 09:21:39 +0100
committerTom Hacohen <tom@stosb.com>2015-10-19 10:22:41 +0100
commitbe358369c16f111cbee18c0ce17d162953da2115 (patch)
treed7cfa809068458e7ab2a21bf6125b3e03654b311
parent31a748e191ff239bca32914de36f7a1aeda9d56e (diff)
downloadefl-be358369c16f111cbee18c0ce17d162953da2115.tar.gz
Eo callbacks: simplify callback call code a bit.
We don't need this check because it's already checked in the match function.
-rw-r--r--src/lib/eo/eo_base_class.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c
index 99c348d0f5..0801a9b1be 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;