eina: Eina_List - remove obvious if() check.

Summary:
if (cmp == 0) - in false branch, cmp can not be equal to 0
else if (cmp < 0) - in false branch, cmp is atleast 1.
else if (cmp > 0) - it is abvious that cmp > 0.

Reviewers: cedric, seoz, raster

Subscribers: cedric, seoz

Differential Revision: https://phab.enlightenment.org/D1502

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
Amitesh Singh 2014-09-29 19:45:49 +02:00 committed by Cedric BAIL
parent b551593087
commit d25747c7f8
1 changed files with 1 additions and 1 deletions

View File

@ -1429,7 +1429,7 @@ eina_list_search_sorted_near_list(const Eina_List *list,
break;
else if (cmp < 0)
inf = cur + 1;
else if (cmp > 0)
else
{
if (cur > 0)
sup = cur - 1;