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:
Carsten Haitzler 2017-07-28 21:07:39 +09:00
parent e9123a5a58
commit e9ab26ae53
1 changed files with 5 additions and 8 deletions

View File

@ -157,17 +157,14 @@ 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++)
{
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)
return iface;
}
if (iface->name == name)
return iface;
}
return NULL;