projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b551593
)
eina: Eina_List - remove obvious if() check.
author
Amitesh Singh
<amitesh.sh@samsung.com>
Mon, 29 Sep 2014 17:45:49 +0000
(19:45 +0200)
committer
Cedric BAIL
<cedric@osg.samsung.com>
Mon, 29 Sep 2014 18:20:17 +0000
(20:20 +0200)
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>
src/lib/eina/eina_list.c
patch
|
blob
|
history
diff --git
a/src/lib/eina/eina_list.c
b/src/lib/eina/eina_list.c
index 527a1413443c99bf01448b04995ca50bb771e5f0..e1088b0d33e86fc126057fec8c618da5b55d2092 100644
(file)
--- 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;