Skip to contentSkip to conversation

compile-i386: make use of expression_list_size()

PATCH In review Martin Kepplinger 3 participants 3 messages Sep 15, 2017 Sparse checker

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 compile-i386: make use of expression_list_size()

Instead of doing it my hand, there is the expression_list_size() API we can use here.

---

This only builds. I have *not* tested it in any way though!!!

 compile-i386.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
compile-i386.c +0 -4
index e4d3f27..12fbcc7 100644
@@ -997,11 +997,7 @@ static void sort_array(struct expression *expr)
 	struct expression *entry, **list;
 	unsigned int elem, sorted, i;
 
-	elem = 0;
-	FOR_EACH_PTR(expr->expr_list, entry) {
-		elem++;
-	} END_FOR_EACH_PTR(entry);