From 4a451be8acc77467d6ffec9506b8f89ef92def8a Mon Sep 17 00:00:00 2001 From: Zhangfei Gao Date: Wed, 24 Jan 2024 04:34:16 +0000 Subject: [PATCH] test: fix build error Fix build errors like "unused variable" Signed-off-by: Zhangfei Gao Signed-off-by: 15859157387 <977713017@qq.com> --- test/wd_mempool_test.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/wd_mempool_test.c b/test/wd_mempool_test.c index ad046369a..6e28b462a 100644 --- a/test/wd_mempool_test.c +++ b/test/wd_mempool_test.c @@ -644,7 +644,7 @@ static void *sva_sec_cipher_async(void *arg) int cnt = g_times; handle_t h_sess; int ret; - int j, i; + int j; setup->alg = WD_CIPHER_AES; setup->mode = WD_CIPHER_CBC; @@ -658,7 +658,6 @@ static void *sva_sec_cipher_async(void *arg) SEC_TST_PRT("test sec cipher set key is failed!\n"); goto out;; } - i = cnt; /* run task */ do { try_do_again: @@ -666,7 +665,6 @@ static void *sva_sec_cipher_async(void *arg) req->src = pdata->bd_pool->bds[j].src; req->dst = pdata->bd_pool->bds[j].dst; ret = wd_do_cipher_async(h_sess, req); - i--; if (ret == -EBUSY) { // busy usleep(100); goto try_do_again;