summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-28 21:07:39 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-29 09:08:40 +0900
commite9ab26ae539db23a06232e6f4fcd757347cbd46e (patch)
tree3e0b53dd469dd758fff4bfec5b630e0fd68229e7
parente9123a5a585d8932c934c95b21827dcd98c8aa48 (diff)
evas obj smart - remove pointless if
s is already checked for null... so no need to check again found by PVS studio @fix
-rw-r--r--src/lib/evas/canvas/evas_object_smart.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/lib/evas/canvas/evas_object_smart.c b/src/lib/evas/canvas/evas_object_smart.c
index aa849d0a98..0b42894cb9 100644
--- a/src/lib/evas/canvas/evas_object_smart.c
+++ b/src/lib/evas/canvas/evas_object_smart.c
@@ -157,17 +157,14 @@ evas_object_smart_interface_get(const Evas_Object *eo_obj,
157 s = evas_object_smart_smart_get(eo_obj); 157 s = evas_object_smart_smart_get(eo_obj);
158 if (!s) return NULL; 158 if (!s) return NULL;
159 159
160 if (s) 160 for (i = 0; i < s->interfaces.size; i++)
161 { 161 {
162 for (i = 0; i < s->interfaces.size; i++) 162 const Evas_Smart_Interface *iface;
163 {
164 const Evas_Smart_Interface *iface;
165 163
166 iface = s->interfaces.array[i]; 164 iface = s->interfaces.array[i];
167 165
168 if (iface->name == name) 166 if (iface->name == name)
169 return iface; 167 return iface;
170 }
171 } 168 }
172 169
173 return NULL; 170 return NULL;