eo: fix to remove unreachable loop
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Mon, 18 Feb 2019 04:24:27 +0000 (13:24 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Fri, 8 Mar 2019 11:49:35 +0000 (20:49 +0900)
src/lib/eo/eo.c

index 76bebef..9d70bc3 100644 (file)
@@ -3628,10 +3628,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;
 }