Eina_List: Revert changes introduced in r52253
authoretrunko <etrunko>
Mon, 20 Sep 2010 18:20:40 +0000 (18:20 +0000)
committeretrunko <etrunko@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 20 Sep 2010 18:20:40 +0000 (18:20 +0000)
The patch was trying to fix an error caused by wrong usage of this function

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@52496 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/eina_list.c

index 82427dc..a09b3cf 100644 (file)
@@ -1859,9 +1859,6 @@ eina_list_search_sorted_near_list(const Eina_List *list,
         else if (tmp > cur)
            for (; tmp != cur; tmp--, ct = ct->prev) ;
 
-        if (!ct)
-           goto end;
-
         cmp = func(ct->data, data);
         if (cmp == 0)
            break;