From 86ea8f993dd576a8bbf1911d615a0720707df2c5 Mon Sep 17 00:00:00 2001 From: Jaehyun Cho Date: Mon, 18 Feb 2019 13:24:27 +0900 Subject: [PATCH] eo: fix to remove unreachable loop Change-Id: Ia8c0b3329faba15b699c3329377ee8c299b6af15 --- src/lib/eo/eo.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c index 5e4e456..d9a5e02 100644 --- a/src/lib/eo/eo.c +++ b/src/lib/eo/eo.c @@ -3621,10 +3621,8 @@ _efl_class_reflection_find(const _Efl_Class *klass, const char *property_name) if (ref) return ref; } - for (; *klass_iter; klass_iter++) - { - return _efl_class_reflection_find(*klass_iter, property_name); - } + if (*klass_iter) + return _efl_class_reflection_find(*klass_iter, property_name); return NULL; } -- 2.7.4