[PATCH] compile-i386: make use of expression_list_size()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Martin Kepplinger <martink@xxxxxxxxx>
---

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



 compile-i386.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/compile-i386.c b/compile-i386.c
index e4d3f27..12fbcc7 100644
--- a/compile-i386.c
+++ b/compile-i386.c
@@ -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);
-
+	elem = expression_list_size(expr->expr_list);
 	if (!elem)
 		return;
 
-- 
2.11.0

--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux