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,17 +157,14 @@ evas_object_smart_interface_get(const Evas_Object *eo_obj,
|
||||||
s = evas_object_smart_smart_get(eo_obj);
|
s = evas_object_smart_smart_get(eo_obj);
|
||||||
if (!s) return NULL;
|
if (!s) return NULL;
|
||||||
|
|
||||||
if (s)
|
for (i = 0; i < s->interfaces.size; i++)
|
||||||
{
|
{
|
||||||
for (i = 0; i < s->interfaces.size; i++)
|
const Evas_Smart_Interface *iface;
|
||||||
{
|
|
||||||
const Evas_Smart_Interface *iface;
|
|
||||||
|
|
||||||
iface = s->interfaces.array[i];
|
iface = s->interfaces.array[i];
|
||||||
|
|
||||||
if (iface->name == name)
|
if (iface->name == name)
|
||||||
return iface;
|
return iface;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue