From 88c61c382238a4dc382e9c6744d1eb0693e90fc1 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Mon, 30 Mar 2020 20:50:49 +0700 Subject: tests/coding: cosmetic: use ARRAY_SIZE() macro from utils.h Change-Id: Ie6278d84d405f073669e607f978ca5b187bcf78e --- tests/coding/coding_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/coding/coding_test.c b/tests/coding/coding_test.c index 087a5930..2ae95f87 100644 --- a/tests/coding/coding_test.c +++ b/tests/coding/coding_test.c @@ -384,8 +384,8 @@ int main(int argc, char **argv) { int i, len_l2, len_mb; - len_l2 = sizeof(test_l2) / sizeof(test_l2[0]); - len_mb = sizeof(test_macblock) / sizeof(test_macblock[0]); + len_l2 = ARRAY_SIZE(test_l2); + len_mb = ARRAY_SIZE(test_macblock); for (i = 0; i < len_l2; i++) test_xcch(test_l2[i]); -- cgit v1.2.3