summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2013-09-30 14:28:38 +0100
committerTom Hacohen <tom@stosb.com>2013-09-30 14:28:38 +0100
commitde6f57fac0a21f7729893b5d3d7a5606e9dcb1ce (patch)
treea1cf1d2e20db95cd7ab3e3ab82a332c013e02921 /src
parent104a57b58ab44449bd015ca677a225cee4cb92cf (diff)
Eina inlist: Removed redundant if in EINA_INLIST_FOREACH_SAFE.
If it is not NULL, so will EINA_INLIST_GET. As that returns a pointer to an area after it.
Diffstat (limited to 'src')
-rw-r--r--src/lib/eina/eina_inlist.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eina/eina_inlist.h b/src/lib/eina/eina_inlist.h
index e3f15769b7..ba7ffecc77 100644
--- a/src/lib/eina/eina_inlist.h
+++ b/src/lib/eina/eina_inlist.h
@@ -843,7 +843,7 @@ EAPI Eina_Inlist *eina_inlist_sort(Eina_Inlist *head, Eina_Compare_Cb func);
843 * that is part of the list. 843 * that is part of the list.
844 */ 844 */
845#define EINA_INLIST_FOREACH_SAFE(list, list2, it) \ 845#define EINA_INLIST_FOREACH_SAFE(list, list2, it) \
846 for (it = NULL, it = (list ? _EINA_INLIST_CONTAINER(it, list) : NULL), list2 = it ? ((EINA_INLIST_GET(it) ? EINA_INLIST_GET(it)->next : NULL)) : NULL; \ 846 for (it = NULL, it = (list ? _EINA_INLIST_CONTAINER(it, list) : NULL), list2 = it ? EINA_INLIST_GET(it)->next : NULL; \
847 it; \ 847 it; \
848 it = list2 ? _EINA_INLIST_CONTAINER(it, list2) : NULL, list2 = list2 ? list2->next : NULL) 848 it = list2 ? _EINA_INLIST_CONTAINER(it, list2) : NULL, list2 = list2 ? list2->next : NULL)
849 849