cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=d25747c7f86a548256a210654f1c46cb5672ccc0

commit d25747c7f86a548256a210654f1c46cb5672ccc0
Author: Amitesh Singh <amitesh...@samsung.com>
Date:   Mon Sep 29 19:45:49 2014 +0200

    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 <ced...@osg.samsung.com>
---
 src/lib/eina/eina_list.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/eina/eina_list.c b/src/lib/eina/eina_list.c
index 527a141..e1088b0 100644
--- a/src/lib/eina/eina_list.c
+++ b/src/lib/eina/eina_list.c
@@ -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;

-- 


Reply via email to