forked from enlightenment/efl
evas obj smart - remove pointless if
s is already checked for null... so no need to check again found by PVS studio @fix
This commit is contained in:
parent
e9123a5a58
commit
e9ab26ae53
|
@ -157,8 +157,6 @@ evas_object_smart_interface_get(const Evas_Object *eo_obj,
|
|||
s = evas_object_smart_smart_get(eo_obj);
|
||||
if (!s) return NULL;
|
||||
|
||||
if (s)
|
||||
{
|
||||
for (i = 0; i < s->interfaces.size; i++)
|
||||
{
|
||||
const Evas_Smart_Interface *iface;
|
||||
|
@ -168,7 +166,6 @@ evas_object_smart_interface_get(const Evas_Object *eo_obj,
|
|||
if (iface->name == name)
|
||||
return iface;
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue