elemenatry/elm_widget - removed unnecesary compare.
authorhermet <hermet@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 19 Dec 2011 07:06:22 +0000 (07:06 +0000)
committerhermet <hermet@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 19 Dec 2011 07:06:22 +0000 (07:06 +0000)
if the obj is NULL then sd will be NULL also.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@66321 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_widget.c

index 071b454..2e0e271 100644 (file)
@@ -5,7 +5,7 @@ static const char SMART_NAME[] = "elm_widget";
 
 #define API_ENTRY                                    \
   Smart_Data * sd = evas_object_smart_data_get(obj); \
-  if ((!obj) || (!sd) || (!_elm_widget_is(obj)))
+  if ((!sd) || (!_elm_widget_is(obj)))
 #define INTERNAL_ENTRY                               \
   Smart_Data * sd = evas_object_smart_data_get(obj); \
   if (!sd) return;