forked from altcloud/fence-virt
Reword assignment to appease static analyzers
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
This commit is contained in:
parent
1b6f7975b6
commit
bdec10cbb1
@ -68,14 +68,14 @@ do { \
|
|||||||
* * cnt ends up being the number of items in the list.
|
* * cnt ends up being the number of items in the list.
|
||||||
*/
|
*/
|
||||||
#define list_for(list, curr, cnt) \
|
#define list_for(list, curr, cnt) \
|
||||||
if (!(cnt=0) && (list != NULL) && (*list != NULL)) \
|
if (((cnt=0) == 0) && (list != NULL) && (*list != NULL)) \
|
||||||
for (curr = *list; \
|
for (curr = *list; \
|
||||||
(cnt == 0) || (curr != *list); \
|
(cnt == 0) || (curr != *list); \
|
||||||
curr = (void*)le(curr)->le_next, \
|
curr = (void*)le(curr)->le_next, \
|
||||||
cnt++)
|
cnt++)
|
||||||
|
|
||||||
#define list_for_rev(list, curr, cnt) \
|
#define list_for_rev(list, curr, cnt) \
|
||||||
if (!(cnt=0) && list && *list) \
|
if (((cnt=0) == 0) && list && *list) \
|
||||||
for (curr = (void *)(le(*list)->le_prev); \
|
for (curr = (void *)(le(*list)->le_prev); \
|
||||||
(cnt == 0) || ((void *)curr != le(*list)->le_prev); \
|
(cnt == 0) || ((void *)curr != le(*list)->le_prev); \
|
||||||
curr = (void*)(le(curr)->le_prev), \
|
curr = (void*)(le(curr)->le_prev), \
|
||||||
|
Loading…
Reference in New Issue
Block a user